Skip to content

Commit

Permalink
fix: update gapic-generator-java with mock service generation fixes (g…
Browse files Browse the repository at this point in the history
…oogleapis#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

Verified

This commit was signed with the committer’s verified signature.
simeonschaub Simeon David Schaub
1 parent 1a691de commit f04084d
Showing 50 changed files with 99 additions and 182 deletions.
Original file line number Diff line number Diff line change
@@ -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;
}
Original file line number Diff line number Diff line change
@@ -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;
}
Original file line number Diff line number Diff line change
@@ -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;
@@ -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
@@ -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;

@@ -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
@@ -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;
@@ -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
@@ -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;
@@ -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
@@ -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 {

Original file line number Diff line number Diff line change
@@ -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 {

@@ -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
@@ -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 {

Original file line number Diff line number Diff line change
@@ -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;
@@ -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
@@ -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;
@@ -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
@@ -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;
@@ -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
@@ -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;
@@ -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
@@ -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;
@@ -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
@@ -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;
@@ -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
@@ -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;
@@ -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
@@ -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;
@@ -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
@@ -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;

@@ -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
@@ -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;
@@ -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
@@ -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;
@@ -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
@@ -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;
@@ -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
@@ -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;
@@ -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
@@ -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;
@@ -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
@@ -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;
@@ -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 f04084d

Please sign in to comment.