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#54)

- [ ] 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 608b72c commit 9af2ed5
Show file tree
Hide file tree
Showing 43 changed files with 80 additions and 132 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import com.google.api.core.ApiFuture;
import com.google.api.core.ApiFutures;
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 @@ -216,6 +217,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.certificatemanager.v1.samples;

// [START
// certificatemanager_v1_generated_certificatemanagerclient_create_setcredentialsprovider_sync]
// [START certificatemanager_v1_generated_certificatemanagerclient_create_setcredentialsprovider_sync]
import com.google.api.gax.core.FixedCredentialsProvider;
import com.google.cloud.certificatemanager.v1.CertificateManagerClient;
import com.google.cloud.certificatemanager.v1.CertificateManagerSettings;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

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

// [START
// certificatemanager_v1_generated_certificatemanagerclient_create_setcredentialsprovider1_sync]
// [START certificatemanager_v1_generated_certificatemanagerclient_create_setcredentialsprovider1_sync]
import com.google.cloud.certificatemanager.v1.CertificateManagerClient;
import com.google.cloud.certificatemanager.v1.CertificateManagerSettings;

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

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

// [START
// certificatemanager_v1_generated_certificatemanagerclient_createcertificate_locationnamecertificatestring_sync]
// [START certificatemanager_v1_generated_certificatemanagerclient_createcertificate_locationnamecertificatestring_sync]
import com.google.cloud.certificatemanager.v1.Certificate;
import com.google.cloud.certificatemanager.v1.CertificateManagerClient;
import com.google.cloud.certificatemanager.v1.LocationName;
Expand All @@ -40,5 +39,4 @@ public static void syncCreateCertificateLocationnameCertificateString() throws E
}
}
}
// [END
// certificatemanager_v1_generated_certificatemanagerclient_createcertificate_locationnamecertificatestring_sync]
// [END certificatemanager_v1_generated_certificatemanagerclient_createcertificate_locationnamecertificatestring_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

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

// [START
// certificatemanager_v1_generated_certificatemanagerclient_createcertificate_stringcertificatestring_sync]
// [START certificatemanager_v1_generated_certificatemanagerclient_createcertificate_stringcertificatestring_sync]
import com.google.cloud.certificatemanager.v1.Certificate;
import com.google.cloud.certificatemanager.v1.CertificateManagerClient;
import com.google.cloud.certificatemanager.v1.LocationName;
Expand All @@ -40,5 +39,4 @@ public static void syncCreateCertificateStringCertificateString() throws Excepti
}
}
}
// [END
// certificatemanager_v1_generated_certificatemanagerclient_createcertificate_stringcertificatestring_sync]
// [END certificatemanager_v1_generated_certificatemanagerclient_createcertificate_stringcertificatestring_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

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

// [START
// certificatemanager_v1_generated_certificatemanagerclient_createcertificatemap_locationnamecertificatemapstring_sync]
// [START certificatemanager_v1_generated_certificatemanagerclient_createcertificatemap_locationnamecertificatemapstring_sync]
import com.google.cloud.certificatemanager.v1.CertificateManagerClient;
import com.google.cloud.certificatemanager.v1.CertificateMap;
import com.google.cloud.certificatemanager.v1.LocationName;
Expand All @@ -42,5 +41,4 @@ public static void syncCreateCertificateMapLocationnameCertificatemapString() th
}
}
}
// [END
// certificatemanager_v1_generated_certificatemanagerclient_createcertificatemap_locationnamecertificatemapstring_sync]
// [END certificatemanager_v1_generated_certificatemanagerclient_createcertificatemap_locationnamecertificatemapstring_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

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

// [START
// certificatemanager_v1_generated_certificatemanagerclient_createcertificatemap_stringcertificatemapstring_sync]
// [START certificatemanager_v1_generated_certificatemanagerclient_createcertificatemap_stringcertificatemapstring_sync]
import com.google.cloud.certificatemanager.v1.CertificateManagerClient;
import com.google.cloud.certificatemanager.v1.CertificateMap;
import com.google.cloud.certificatemanager.v1.LocationName;
Expand All @@ -42,5 +41,4 @@ public static void syncCreateCertificateMapStringCertificatemapString() throws E
}
}
}
// [END
// certificatemanager_v1_generated_certificatemanagerclient_createcertificatemap_stringcertificatemapstring_sync]
// [END certificatemanager_v1_generated_certificatemanagerclient_createcertificatemap_stringcertificatemapstring_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

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

// [START
// certificatemanager_v1_generated_certificatemanagerclient_createcertificatemapentry_lro_async]
// [START certificatemanager_v1_generated_certificatemanagerclient_createcertificatemapentry_lro_async]
import com.google.api.gax.longrunning.OperationFuture;
import com.google.cloud.certificatemanager.v1.CertificateManagerClient;
import com.google.cloud.certificatemanager.v1.CertificateMapEntry;
Expand Down Expand Up @@ -49,5 +48,4 @@ public static void asyncCreateCertificateMapEntryLRO() throws Exception {
}
}
}
// [END
// certificatemanager_v1_generated_certificatemanagerclient_createcertificatemapentry_lro_async]
// [END certificatemanager_v1_generated_certificatemanagerclient_createcertificatemapentry_lro_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

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

// [START
// certificatemanager_v1_generated_certificatemanagerclient_createcertificatemapentry_certificatemapnamecertificatemapentrystring_sync]
// [START certificatemanager_v1_generated_certificatemanagerclient_createcertificatemapentry_certificatemapnamecertificatemapentrystring_sync]
import com.google.cloud.certificatemanager.v1.CertificateManagerClient;
import com.google.cloud.certificatemanager.v1.CertificateMapEntry;
import com.google.cloud.certificatemanager.v1.CertificateMapName;
Expand All @@ -44,5 +43,4 @@ public static void syncCreateCertificateMapEntryCertificatemapnameCertificatemap
}
}
}
// [END
// certificatemanager_v1_generated_certificatemanagerclient_createcertificatemapentry_certificatemapnamecertificatemapentrystring_sync]
// [END certificatemanager_v1_generated_certificatemanagerclient_createcertificatemapentry_certificatemapnamecertificatemapentrystring_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

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

// [START
// certificatemanager_v1_generated_certificatemanagerclient_createcertificatemapentry_stringcertificatemapentrystring_sync]
// [START certificatemanager_v1_generated_certificatemanagerclient_createcertificatemapentry_stringcertificatemapentrystring_sync]
import com.google.cloud.certificatemanager.v1.CertificateManagerClient;
import com.google.cloud.certificatemanager.v1.CertificateMapEntry;
import com.google.cloud.certificatemanager.v1.CertificateMapName;
Expand All @@ -44,5 +43,4 @@ public static void syncCreateCertificateMapEntryStringCertificatemapentryString(
}
}
}
// [END
// certificatemanager_v1_generated_certificatemanagerclient_createcertificatemapentry_stringcertificatemapentrystring_sync]
// [END certificatemanager_v1_generated_certificatemanagerclient_createcertificatemapentry_stringcertificatemapentrystring_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

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

// [START
// certificatemanager_v1_generated_certificatemanagerclient_creatednsauthorization_locationnamednsauthorizationstring_sync]
// [START certificatemanager_v1_generated_certificatemanagerclient_creatednsauthorization_locationnamednsauthorizationstring_sync]
import com.google.cloud.certificatemanager.v1.CertificateManagerClient;
import com.google.cloud.certificatemanager.v1.DnsAuthorization;
import com.google.cloud.certificatemanager.v1.LocationName;
Expand All @@ -43,5 +42,4 @@ public static void syncCreateDnsAuthorizationLocationnameDnsauthorizationString(
}
}
}
// [END
// certificatemanager_v1_generated_certificatemanagerclient_creatednsauthorization_locationnamednsauthorizationstring_sync]
// [END certificatemanager_v1_generated_certificatemanagerclient_creatednsauthorization_locationnamednsauthorizationstring_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

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

// [START
// certificatemanager_v1_generated_certificatemanagerclient_creatednsauthorization_stringdnsauthorizationstring_sync]
// [START certificatemanager_v1_generated_certificatemanagerclient_creatednsauthorization_stringdnsauthorizationstring_sync]
import com.google.cloud.certificatemanager.v1.CertificateManagerClient;
import com.google.cloud.certificatemanager.v1.DnsAuthorization;
import com.google.cloud.certificatemanager.v1.LocationName;
Expand All @@ -42,5 +41,4 @@ public static void syncCreateDnsAuthorizationStringDnsauthorizationString() thro
}
}
}
// [END
// certificatemanager_v1_generated_certificatemanagerclient_creatednsauthorization_stringdnsauthorizationstring_sync]
// [END certificatemanager_v1_generated_certificatemanagerclient_creatednsauthorization_stringdnsauthorizationstring_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import com.google.cloud.certificatemanager.v1.CertificateManagerClient;
import com.google.cloud.certificatemanager.v1.CertificateName;
import com.google.cloud.certificatemanager.v1.DeleteCertificateRequest;
import com.google.protobuf.Empty;

public class SyncDeleteCertificate {

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

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

// [START
// certificatemanager_v1_generated_certificatemanagerclient_deletecertificate_certificatename_sync]
// [START certificatemanager_v1_generated_certificatemanagerclient_deletecertificate_certificatename_sync]
import com.google.cloud.certificatemanager.v1.CertificateManagerClient;
import com.google.cloud.certificatemanager.v1.CertificateName;
import com.google.protobuf.Empty;

public class SyncDeleteCertificateCertificatename {

Expand All @@ -36,5 +36,4 @@ public static void syncDeleteCertificateCertificatename() throws Exception {
}
}
}
// [END
// certificatemanager_v1_generated_certificatemanagerclient_deletecertificate_certificatename_sync]
// [END certificatemanager_v1_generated_certificatemanagerclient_deletecertificate_certificatename_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
// [START certificatemanager_v1_generated_certificatemanagerclient_deletecertificate_string_sync]
import com.google.cloud.certificatemanager.v1.CertificateManagerClient;
import com.google.cloud.certificatemanager.v1.CertificateName;
import com.google.protobuf.Empty;

public class SyncDeleteCertificateString {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import com.google.cloud.certificatemanager.v1.CertificateManagerClient;
import com.google.cloud.certificatemanager.v1.CertificateMapName;
import com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest;
import com.google.protobuf.Empty;

public class SyncDeleteCertificateMap {

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

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

// [START
// certificatemanager_v1_generated_certificatemanagerclient_deletecertificatemap_certificatemapname_sync]
// [START certificatemanager_v1_generated_certificatemanagerclient_deletecertificatemap_certificatemapname_sync]
import com.google.cloud.certificatemanager.v1.CertificateManagerClient;
import com.google.cloud.certificatemanager.v1.CertificateMapName;
import com.google.protobuf.Empty;

public class SyncDeleteCertificateMapCertificatemapname {

Expand All @@ -37,5 +37,4 @@ public static void syncDeleteCertificateMapCertificatemapname() throws Exception
}
}
}
// [END
// certificatemanager_v1_generated_certificatemanagerclient_deletecertificatemap_certificatemapname_sync]
// [END certificatemanager_v1_generated_certificatemanagerclient_deletecertificatemap_certificatemapname_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
// [START certificatemanager_v1_generated_certificatemanagerclient_deletecertificatemap_string_sync]
import com.google.cloud.certificatemanager.v1.CertificateManagerClient;
import com.google.cloud.certificatemanager.v1.CertificateMapName;
import com.google.protobuf.Empty;

public class SyncDeleteCertificateMapString {

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

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

// [START
// certificatemanager_v1_generated_certificatemanagerclient_deletecertificatemapentry_lro_async]
// [START certificatemanager_v1_generated_certificatemanagerclient_deletecertificatemapentry_lro_async]
import com.google.api.gax.longrunning.OperationFuture;
import com.google.cloud.certificatemanager.v1.CertificateManagerClient;
import com.google.cloud.certificatemanager.v1.CertificateMapEntryName;
Expand Down Expand Up @@ -49,5 +48,4 @@ public static void asyncDeleteCertificateMapEntryLRO() throws Exception {
}
}
}
// [END
// certificatemanager_v1_generated_certificatemanagerclient_deletecertificatemapentry_lro_async]
// [END certificatemanager_v1_generated_certificatemanagerclient_deletecertificatemapentry_lro_async]
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import com.google.cloud.certificatemanager.v1.CertificateManagerClient;
import com.google.cloud.certificatemanager.v1.CertificateMapEntryName;
import com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest;
import com.google.protobuf.Empty;

public class SyncDeleteCertificateMapEntry {

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

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

// [START
// certificatemanager_v1_generated_certificatemanagerclient_deletecertificatemapentry_certificatemapentryname_sync]
// [START certificatemanager_v1_generated_certificatemanagerclient_deletecertificatemapentry_certificatemapentryname_sync]
import com.google.cloud.certificatemanager.v1.CertificateManagerClient;
import com.google.cloud.certificatemanager.v1.CertificateMapEntryName;
import com.google.protobuf.Empty;

public class SyncDeleteCertificateMapEntryCertificatemapentryname {

Expand All @@ -38,5 +38,4 @@ public static void syncDeleteCertificateMapEntryCertificatemapentryname() throws
}
}
}
// [END
// certificatemanager_v1_generated_certificatemanagerclient_deletecertificatemapentry_certificatemapentryname_sync]
// [END certificatemanager_v1_generated_certificatemanagerclient_deletecertificatemapentry_certificatemapentryname_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@

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

// [START
// certificatemanager_v1_generated_certificatemanagerclient_deletecertificatemapentry_string_sync]
// [START certificatemanager_v1_generated_certificatemanagerclient_deletecertificatemapentry_string_sync]
import com.google.cloud.certificatemanager.v1.CertificateManagerClient;
import com.google.cloud.certificatemanager.v1.CertificateMapEntryName;
import com.google.protobuf.Empty;

public class SyncDeleteCertificateMapEntryString {

Expand All @@ -39,5 +39,4 @@ public static void syncDeleteCertificateMapEntryString() throws Exception {
}
}
}
// [END
// certificatemanager_v1_generated_certificatemanagerclient_deletecertificatemapentry_string_sync]
// [END certificatemanager_v1_generated_certificatemanagerclient_deletecertificatemapentry_string_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import com.google.cloud.certificatemanager.v1.CertificateManagerClient;
import com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest;
import com.google.cloud.certificatemanager.v1.DnsAuthorizationName;
import com.google.protobuf.Empty;

public class SyncDeleteDnsAuthorization {

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

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

// [START
// certificatemanager_v1_generated_certificatemanagerclient_deletednsauthorization_dnsauthorizationname_sync]
// [START certificatemanager_v1_generated_certificatemanagerclient_deletednsauthorization_dnsauthorizationname_sync]
import com.google.cloud.certificatemanager.v1.CertificateManagerClient;
import com.google.cloud.certificatemanager.v1.DnsAuthorizationName;
import com.google.protobuf.Empty;

public class SyncDeleteDnsAuthorizationDnsauthorizationname {

Expand All @@ -37,5 +37,4 @@ public static void syncDeleteDnsAuthorizationDnsauthorizationname() throws Excep
}
}
}
// [END
// certificatemanager_v1_generated_certificatemanagerclient_deletednsauthorization_dnsauthorizationname_sync]
// [END certificatemanager_v1_generated_certificatemanagerclient_deletednsauthorization_dnsauthorizationname_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@

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

// [START
// certificatemanager_v1_generated_certificatemanagerclient_deletednsauthorization_string_sync]
// [START certificatemanager_v1_generated_certificatemanagerclient_deletednsauthorization_string_sync]
import com.google.cloud.certificatemanager.v1.CertificateManagerClient;
import com.google.cloud.certificatemanager.v1.DnsAuthorizationName;
import com.google.protobuf.Empty;

public class SyncDeleteDnsAuthorizationString {

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

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

// [START
// certificatemanager_v1_generated_certificatemanagerclient_getcertificate_certificatename_sync]
// [START certificatemanager_v1_generated_certificatemanagerclient_getcertificate_certificatename_sync]
import com.google.cloud.certificatemanager.v1.Certificate;
import com.google.cloud.certificatemanager.v1.CertificateManagerClient;
import com.google.cloud.certificatemanager.v1.CertificateName;
Expand All @@ -37,5 +36,4 @@ public static void syncGetCertificateCertificatename() throws Exception {
}
}
}
// [END
// certificatemanager_v1_generated_certificatemanagerclient_getcertificate_certificatename_sync]
// [END certificatemanager_v1_generated_certificatemanagerclient_getcertificate_certificatename_sync]
Loading

0 comments on commit 9af2ed5

Please sign in to comment.