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
…539)

- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 457524730

Source-Link: googleapis/googleapis@917e7f2

Source-Link: https://github.com/googleapis/googleapis-gen/commit/2497f9a069d3f6b2d6810d5a4e239cda1e7e5a39
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjQ5N2Y5YTA2OWQzZjZiMmQ2ODEwZDVhNGUyMzljZGExZTdlNWEzOSJ9
  • Loading branch information
gcf-owl-bot[bot] authored Jun 28, 2022
1 parent 9d1ad83 commit 9707796
Show file tree
Hide file tree
Showing 50 changed files with 99 additions and 182 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,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 @@ -195,6 +195,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.recommendationengine.v1beta1.samples;

// [START
// recommendationengine_v1beta1_generated_catalogserviceclient_create_setcredentialsprovider_sync]
// [START recommendationengine_v1beta1_generated_catalogserviceclient_create_setcredentialsprovider_sync]
import com.google.api.gax.core.FixedCredentialsProvider;
import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient;
import com.google.cloud.recommendationengine.v1beta1.CatalogServiceSettings;
Expand All @@ -39,5 +38,4 @@ public static void syncCreateSetCredentialsProvider() throws Exception {
CatalogServiceClient catalogServiceClient = CatalogServiceClient.create(catalogServiceSettings);
}
}
// [END
// recommendationengine_v1beta1_generated_catalogserviceclient_create_setcredentialsprovider_sync]
// [END recommendationengine_v1beta1_generated_catalogserviceclient_create_setcredentialsprovider_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.recommendationengine.v1beta1.samples;

// [START
// recommendationengine_v1beta1_generated_catalogserviceclient_create_setcredentialsprovider1_sync]
// [START recommendationengine_v1beta1_generated_catalogserviceclient_create_setcredentialsprovider1_sync]
import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient;
import com.google.cloud.recommendationengine.v1beta1.CatalogServiceSettings;

Expand All @@ -38,5 +37,4 @@ public static void syncCreateSetCredentialsProvider1() throws Exception {
CatalogServiceClient catalogServiceClient = CatalogServiceClient.create(catalogServiceSettings);
}
}
// [END
// recommendationengine_v1beta1_generated_catalogserviceclient_create_setcredentialsprovider1_sync]
// [END recommendationengine_v1beta1_generated_catalogserviceclient_create_setcredentialsprovider1_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.recommendationengine.v1beta1.samples;

// [START
// recommendationengine_v1beta1_generated_catalogserviceclient_createcatalogitem_catalognamecatalogitem_sync]
// [START recommendationengine_v1beta1_generated_catalogserviceclient_createcatalogitem_catalognamecatalogitem_sync]
import com.google.cloud.recommendationengine.v1beta1.CatalogItem;
import com.google.cloud.recommendationengine.v1beta1.CatalogName;
import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient;
Expand All @@ -38,5 +37,4 @@ public static void syncCreateCatalogItemCatalognameCatalogitem() throws Exceptio
}
}
}
// [END
// recommendationengine_v1beta1_generated_catalogserviceclient_createcatalogitem_catalognamecatalogitem_sync]
// [END recommendationengine_v1beta1_generated_catalogserviceclient_createcatalogitem_catalognamecatalogitem_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.recommendationengine.v1beta1.samples;

// [START
// recommendationengine_v1beta1_generated_catalogserviceclient_createcatalogitem_stringcatalogitem_sync]
// [START recommendationengine_v1beta1_generated_catalogserviceclient_createcatalogitem_stringcatalogitem_sync]
import com.google.cloud.recommendationengine.v1beta1.CatalogItem;
import com.google.cloud.recommendationengine.v1beta1.CatalogName;
import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient;
Expand All @@ -38,5 +37,4 @@ public static void syncCreateCatalogItemStringCatalogitem() throws Exception {
}
}
}
// [END
// recommendationengine_v1beta1_generated_catalogserviceclient_createcatalogitem_stringcatalogitem_sync]
// [END recommendationengine_v1beta1_generated_catalogserviceclient_createcatalogitem_stringcatalogitem_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import com.google.cloud.recommendationengine.v1beta1.CatalogItemPathName;
import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient;
import com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest;
import com.google.protobuf.Empty;

public class SyncDeleteCatalogItem {

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

package com.google.cloud.recommendationengine.v1beta1.samples;

// [START
// recommendationengine_v1beta1_generated_catalogserviceclient_deletecatalogitem_catalogitempathname_sync]
// [START recommendationengine_v1beta1_generated_catalogserviceclient_deletecatalogitem_catalogitempathname_sync]
import com.google.cloud.recommendationengine.v1beta1.CatalogItemPathName;
import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient;
import com.google.protobuf.Empty;

public class SyncDeleteCatalogItemCatalogitempathname {

Expand All @@ -37,5 +37,4 @@ public static void syncDeleteCatalogItemCatalogitempathname() throws Exception {
}
}
}
// [END
// recommendationengine_v1beta1_generated_catalogserviceclient_deletecatalogitem_catalogitempathname_sync]
// [END recommendationengine_v1beta1_generated_catalogserviceclient_deletecatalogitem_catalogitempathname_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
// [START recommendationengine_v1beta1_generated_catalogserviceclient_deletecatalogitem_string_sync]
import com.google.cloud.recommendationengine.v1beta1.CatalogItemPathName;
import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient;
import com.google.protobuf.Empty;

public class SyncDeleteCatalogItemString {

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

package com.google.cloud.recommendationengine.v1beta1.samples;

// [START
// recommendationengine_v1beta1_generated_catalogserviceclient_getcatalogitem_catalogitempathname_sync]
// [START recommendationengine_v1beta1_generated_catalogserviceclient_getcatalogitem_catalogitempathname_sync]
import com.google.cloud.recommendationengine.v1beta1.CatalogItem;
import com.google.cloud.recommendationengine.v1beta1.CatalogItemPathName;
import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient;
Expand All @@ -38,5 +37,4 @@ public static void syncGetCatalogItemCatalogitempathname() throws Exception {
}
}
}
// [END
// recommendationengine_v1beta1_generated_catalogserviceclient_getcatalogitem_catalogitempathname_sync]
// [END recommendationengine_v1beta1_generated_catalogserviceclient_getcatalogitem_catalogitempathname_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.recommendationengine.v1beta1.samples;

// [START
// recommendationengine_v1beta1_generated_catalogserviceclient_importcatalogitems_catalognamestringinputconfigimporterrorsconfig_sync]
// [START recommendationengine_v1beta1_generated_catalogserviceclient_importcatalogitems_catalognamestringinputconfigimporterrorsconfig_sync]
import com.google.cloud.recommendationengine.v1beta1.CatalogName;
import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient;
import com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse;
Expand Down Expand Up @@ -46,5 +45,4 @@ public static void syncImportCatalogItemsCatalognameStringInputconfigImporterror
}
}
}
// [END
// recommendationengine_v1beta1_generated_catalogserviceclient_importcatalogitems_catalognamestringinputconfigimporterrorsconfig_sync]
// [END recommendationengine_v1beta1_generated_catalogserviceclient_importcatalogitems_catalognamestringinputconfigimporterrorsconfig_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.recommendationengine.v1beta1.samples;

// [START
// recommendationengine_v1beta1_generated_catalogserviceclient_importcatalogitems_stringstringinputconfigimporterrorsconfig_sync]
// [START recommendationengine_v1beta1_generated_catalogserviceclient_importcatalogitems_stringstringinputconfigimporterrorsconfig_sync]
import com.google.cloud.recommendationengine.v1beta1.CatalogName;
import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient;
import com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse;
Expand Down Expand Up @@ -46,5 +45,4 @@ public static void syncImportCatalogItemsStringStringInputconfigImporterrorsconf
}
}
}
// [END
// recommendationengine_v1beta1_generated_catalogserviceclient_importcatalogitems_stringstringinputconfigimporterrorsconfig_sync]
// [END recommendationengine_v1beta1_generated_catalogserviceclient_importcatalogitems_stringstringinputconfigimporterrorsconfig_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.recommendationengine.v1beta1.samples;

// [START
// recommendationengine_v1beta1_generated_catalogserviceclient_listcatalogitems_catalognamestring_sync]
// [START recommendationengine_v1beta1_generated_catalogserviceclient_listcatalogitems_catalognamestring_sync]
import com.google.cloud.recommendationengine.v1beta1.CatalogItem;
import com.google.cloud.recommendationengine.v1beta1.CatalogName;
import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient;
Expand All @@ -41,5 +40,4 @@ public static void syncListCatalogItemsCatalognameString() throws Exception {
}
}
}
// [END
// recommendationengine_v1beta1_generated_catalogserviceclient_listcatalogitems_catalognamestring_sync]
// [END recommendationengine_v1beta1_generated_catalogserviceclient_listcatalogitems_catalognamestring_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.recommendationengine.v1beta1.samples;

// [START
// recommendationengine_v1beta1_generated_catalogserviceclient_listcatalogitems_stringstring_sync]
// [START recommendationengine_v1beta1_generated_catalogserviceclient_listcatalogitems_stringstring_sync]
import com.google.cloud.recommendationengine.v1beta1.CatalogItem;
import com.google.cloud.recommendationengine.v1beta1.CatalogName;
import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient;
Expand All @@ -41,5 +40,4 @@ public static void syncListCatalogItemsStringString() throws Exception {
}
}
}
// [END
// recommendationengine_v1beta1_generated_catalogserviceclient_listcatalogitems_stringstring_sync]
// [END recommendationengine_v1beta1_generated_catalogserviceclient_listcatalogitems_stringstring_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.recommendationengine.v1beta1.samples;

// [START
// recommendationengine_v1beta1_generated_catalogserviceclient_updatecatalogitem_catalogitempathnamecatalogitemfieldmask_sync]
// [START recommendationengine_v1beta1_generated_catalogserviceclient_updatecatalogitem_catalogitempathnamecatalogitemfieldmask_sync]
import com.google.cloud.recommendationengine.v1beta1.CatalogItem;
import com.google.cloud.recommendationengine.v1beta1.CatalogItemPathName;
import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient;
Expand All @@ -42,5 +41,4 @@ public static void syncUpdateCatalogItemCatalogitempathnameCatalogitemFieldmask(
}
}
}
// [END
// recommendationengine_v1beta1_generated_catalogserviceclient_updatecatalogitem_catalogitempathnamecatalogitemfieldmask_sync]
// [END recommendationengine_v1beta1_generated_catalogserviceclient_updatecatalogitem_catalogitempathnamecatalogitemfieldmask_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.recommendationengine.v1beta1.samples;

// [START
// recommendationengine_v1beta1_generated_catalogserviceclient_updatecatalogitem_stringcatalogitemfieldmask_sync]
// [START recommendationengine_v1beta1_generated_catalogserviceclient_updatecatalogitem_stringcatalogitemfieldmask_sync]
import com.google.cloud.recommendationengine.v1beta1.CatalogItem;
import com.google.cloud.recommendationengine.v1beta1.CatalogItemPathName;
import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient;
Expand All @@ -42,5 +41,4 @@ public static void syncUpdateCatalogItemStringCatalogitemFieldmask() throws Exce
}
}
}
// [END
// recommendationengine_v1beta1_generated_catalogserviceclient_updatecatalogitem_stringcatalogitemfieldmask_sync]
// [END recommendationengine_v1beta1_generated_catalogserviceclient_updatecatalogitem_stringcatalogitemfieldmask_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.recommendationengine.v1beta1.samples;

// [START
// recommendationengine_v1beta1_generated_predictionapikeyregistryclient_create_setcredentialsprovider_sync]
// [START recommendationengine_v1beta1_generated_predictionapikeyregistryclient_create_setcredentialsprovider_sync]
import com.google.api.gax.core.FixedCredentialsProvider;
import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistryClient;
import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrySettings;
Expand All @@ -40,5 +39,4 @@ public static void syncCreateSetCredentialsProvider() throws Exception {
PredictionApiKeyRegistryClient.create(predictionApiKeyRegistrySettings);
}
}
// [END
// recommendationengine_v1beta1_generated_predictionapikeyregistryclient_create_setcredentialsprovider_sync]
// [END recommendationengine_v1beta1_generated_predictionapikeyregistryclient_create_setcredentialsprovider_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.recommendationengine.v1beta1.samples;

// [START
// recommendationengine_v1beta1_generated_predictionapikeyregistryclient_create_setcredentialsprovider1_sync]
// [START recommendationengine_v1beta1_generated_predictionapikeyregistryclient_create_setcredentialsprovider1_sync]
import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistryClient;
import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrySettings;

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

package com.google.cloud.recommendationengine.v1beta1.samples;

// [START
// recommendationengine_v1beta1_generated_predictionapikeyregistryclient_create_setendpoint_sync]
// [START recommendationengine_v1beta1_generated_predictionapikeyregistryclient_create_setendpoint_sync]
import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistryClient;
import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrySettings;
import com.google.cloud.recommendationengine.v1beta1.myEndpoint;
Expand All @@ -37,5 +36,4 @@ public static void syncCreateSetEndpoint() throws Exception {
PredictionApiKeyRegistryClient.create(predictionApiKeyRegistrySettings);
}
}
// [END
// recommendationengine_v1beta1_generated_predictionapikeyregistryclient_create_setendpoint_sync]
// [END recommendationengine_v1beta1_generated_predictionapikeyregistryclient_create_setendpoint_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.recommendationengine.v1beta1.samples;

// [START
// recommendationengine_v1beta1_generated_predictionapikeyregistryclient_createpredictionapikeyregistration_async]
// [START recommendationengine_v1beta1_generated_predictionapikeyregistryclient_createpredictionapikeyregistration_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest;
import com.google.cloud.recommendationengine.v1beta1.EventStoreName;
Expand Down Expand Up @@ -51,5 +50,4 @@ public static void asyncCreatePredictionApiKeyRegistration() throws Exception {
}
}
}
// [END
// recommendationengine_v1beta1_generated_predictionapikeyregistryclient_createpredictionapikeyregistration_async]
// [END recommendationengine_v1beta1_generated_predictionapikeyregistryclient_createpredictionapikeyregistration_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.recommendationengine.v1beta1.samples;

// [START
// recommendationengine_v1beta1_generated_predictionapikeyregistryclient_createpredictionapikeyregistration_sync]
// [START recommendationengine_v1beta1_generated_predictionapikeyregistryclient_createpredictionapikeyregistration_sync]
import com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest;
import com.google.cloud.recommendationengine.v1beta1.EventStoreName;
import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration;
Expand Down Expand Up @@ -46,5 +45,4 @@ public static void syncCreatePredictionApiKeyRegistration() throws Exception {
}
}
}
// [END
// recommendationengine_v1beta1_generated_predictionapikeyregistryclient_createpredictionapikeyregistration_sync]
// [END recommendationengine_v1beta1_generated_predictionapikeyregistryclient_createpredictionapikeyregistration_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.recommendationengine.v1beta1.samples;

// [START
// recommendationengine_v1beta1_generated_predictionapikeyregistryclient_createpredictionapikeyregistration_eventstorenamepredictionapikeyregistration_sync]
// [START recommendationengine_v1beta1_generated_predictionapikeyregistryclient_createpredictionapikeyregistration_eventstorenamepredictionapikeyregistration_sync]
import com.google.cloud.recommendationengine.v1beta1.EventStoreName;
import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration;
import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistryClient;
Expand Down Expand Up @@ -45,5 +44,4 @@ public static void main(String[] args) throws Exception {
}
}
}
// [END
// recommendationengine_v1beta1_generated_predictionapikeyregistryclient_createpredictionapikeyregistration_eventstorenamepredictionapikeyregistration_sync]
// [END recommendationengine_v1beta1_generated_predictionapikeyregistryclient_createpredictionapikeyregistration_eventstorenamepredictionapikeyregistration_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.recommendationengine.v1beta1.samples;

// [START
// recommendationengine_v1beta1_generated_predictionapikeyregistryclient_createpredictionapikeyregistration_stringpredictionapikeyregistration_sync]
// [START recommendationengine_v1beta1_generated_predictionapikeyregistryclient_createpredictionapikeyregistration_stringpredictionapikeyregistration_sync]
import com.google.cloud.recommendationengine.v1beta1.EventStoreName;
import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration;
import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistryClient;
Expand All @@ -44,5 +43,4 @@ public static void syncCreatePredictionApiKeyRegistrationStringPredictionapikeyr
}
}
}
// [END
// recommendationengine_v1beta1_generated_predictionapikeyregistryclient_createpredictionapikeyregistration_stringpredictionapikeyregistration_sync]
// [END recommendationengine_v1beta1_generated_predictionapikeyregistryclient_createpredictionapikeyregistration_stringpredictionapikeyregistration_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.recommendationengine.v1beta1.samples;

// [START
// recommendationengine_v1beta1_generated_predictionapikeyregistryclient_deletepredictionapikeyregistration_async]
// [START recommendationengine_v1beta1_generated_predictionapikeyregistryclient_deletepredictionapikeyregistration_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest;
import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationName;
Expand Down Expand Up @@ -55,5 +54,4 @@ public static void asyncDeletePredictionApiKeyRegistration() throws Exception {
}
}
}
// [END
// recommendationengine_v1beta1_generated_predictionapikeyregistryclient_deletepredictionapikeyregistration_async]
// [END recommendationengine_v1beta1_generated_predictionapikeyregistryclient_deletepredictionapikeyregistration_async]
Loading

0 comments on commit 9707796

Please sign in to comment.