Skip to content

Commit

Permalink
chore: Set rest_numeric_enums = False for all gapic rules explicitly (
Browse files Browse the repository at this point in the history
#128)

- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 485623855

Source-Link: https://togithub.com/googleapis/googleapis/commit/807125e7953e32535710924fe4bf0362ac93754d

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/c4ddd6d651da69658a4762c5eafff5cd8f0e25c5
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzRkZGQ2ZDY1MWRhNjk2NThhNDc2MmM1ZWFmZmY1Y2Q4ZjBlMjVjNSJ9
  • Loading branch information
gcf-owl-bot[bot] authored Nov 8, 2022
1 parent 3dc89ad commit 8e502ed
Show file tree
Hide file tree
Showing 122 changed files with 244 additions and 250 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,7 @@
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* CertificateManagerSettings certificateManagerSettings =
* CertificateManagerSettings.newBuilder()
* .setTransportChannelProvider(
* CertificateManagerSettings.defaultHttpJsonTransportProviderBuilder().build())
* .build();
* CertificateManagerSettings.newHttpJsonBuilder().build();
* CertificateManagerClient certificateManagerClient =
* CertificateManagerClient.create(certificateManagerSettings);
* }</pre>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START certificatemanager_v1_generated_certificatemanagerclient_create_setcredentialsprovider_sync]
// [START certificatemanager_v1_generated_CertificateManager_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 All @@ -42,4 +42,4 @@ public static void syncCreateSetCredentialsProvider() throws Exception {
CertificateManagerClient.create(certificateManagerSettings);
}
}
// [END certificatemanager_v1_generated_certificatemanagerclient_create_setcredentialsprovider_sync]
// [END certificatemanager_v1_generated_CertificateManager_Create_SetCredentialsProvider_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

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

Expand All @@ -33,12 +33,9 @@ public static void syncCreateSetCredentialsProvider1() throws Exception {
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
CertificateManagerSettings certificateManagerSettings =
CertificateManagerSettings.newBuilder()
.setTransportChannelProvider(
CertificateManagerSettings.defaultHttpJsonTransportProviderBuilder().build())
.build();
CertificateManagerSettings.newHttpJsonBuilder().build();
CertificateManagerClient certificateManagerClient =
CertificateManagerClient.create(certificateManagerSettings);
}
}
// [END certificatemanager_v1_generated_certificatemanagerclient_create_setcredentialsprovider1_sync]
// [END certificatemanager_v1_generated_CertificateManager_Create_SetCredentialsProvider1_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START certificatemanager_v1_generated_certificatemanagerclient_create_setendpoint_sync]
// [START certificatemanager_v1_generated_CertificateManager_Create_SetEndpoint_sync]
import com.google.cloud.certificatemanager.v1.CertificateManagerClient;
import com.google.cloud.certificatemanager.v1.CertificateManagerSettings;
import com.google.cloud.certificatemanager.v1.myEndpoint;
Expand All @@ -39,4 +39,4 @@ public static void syncCreateSetEndpoint() throws Exception {
CertificateManagerClient.create(certificateManagerSettings);
}
}
// [END certificatemanager_v1_generated_certificatemanagerclient_create_setendpoint_sync]
// [END certificatemanager_v1_generated_CertificateManager_Create_SetEndpoint_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START certificatemanager_v1_generated_certificatemanagerclient_createcertificate_async]
// [START certificatemanager_v1_generated_CertificateManager_CreateCertificate_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.certificatemanager.v1.Certificate;
import com.google.cloud.certificatemanager.v1.CertificateManagerClient;
Expand Down Expand Up @@ -50,4 +50,4 @@ public static void asyncCreateCertificate() throws Exception {
}
}
}
// [END certificatemanager_v1_generated_certificatemanagerclient_createcertificate_async]
// [END certificatemanager_v1_generated_CertificateManager_CreateCertificate_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START certificatemanager_v1_generated_certificatemanagerclient_createcertificate_lro_async]
// [START certificatemanager_v1_generated_CertificateManager_CreateCertificate_LRO_async]
import com.google.api.gax.longrunning.OperationFuture;
import com.google.cloud.certificatemanager.v1.Certificate;
import com.google.cloud.certificatemanager.v1.CertificateManagerClient;
Expand Down Expand Up @@ -50,4 +50,4 @@ public static void asyncCreateCertificateLRO() throws Exception {
}
}
}
// [END certificatemanager_v1_generated_certificatemanagerclient_createcertificate_lro_async]
// [END certificatemanager_v1_generated_CertificateManager_CreateCertificate_LRO_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START certificatemanager_v1_generated_certificatemanagerclient_createcertificate_sync]
// [START certificatemanager_v1_generated_CertificateManager_CreateCertificate_sync]
import com.google.cloud.certificatemanager.v1.Certificate;
import com.google.cloud.certificatemanager.v1.CertificateManagerClient;
import com.google.cloud.certificatemanager.v1.CreateCertificateRequest;
Expand Down Expand Up @@ -45,4 +45,4 @@ public static void syncCreateCertificate() throws Exception {
}
}
}
// [END certificatemanager_v1_generated_certificatemanagerclient_createcertificate_sync]
// [END certificatemanager_v1_generated_CertificateManager_CreateCertificate_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START certificatemanager_v1_generated_certificatemanagerclient_createcertificate_locationnamecertificatestring_sync]
// [START certificatemanager_v1_generated_CertificateManager_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 @@ -42,4 +42,4 @@ public static void syncCreateCertificateLocationnameCertificateString() throws E
}
}
}
// [END certificatemanager_v1_generated_certificatemanagerclient_createcertificate_locationnamecertificatestring_sync]
// [END certificatemanager_v1_generated_CertificateManager_CreateCertificate_LocationnameCertificateString_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START certificatemanager_v1_generated_certificatemanagerclient_createcertificate_stringcertificatestring_sync]
// [START certificatemanager_v1_generated_CertificateManager_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 @@ -42,4 +42,4 @@ public static void syncCreateCertificateStringCertificateString() throws Excepti
}
}
}
// [END certificatemanager_v1_generated_certificatemanagerclient_createcertificate_stringcertificatestring_sync]
// [END certificatemanager_v1_generated_CertificateManager_CreateCertificate_StringCertificateString_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START certificatemanager_v1_generated_certificatemanagerclient_createcertificateissuanceconfig_async]
// [START certificatemanager_v1_generated_CertificateManager_CreateCertificateIssuanceConfig_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig;
import com.google.cloud.certificatemanager.v1.CertificateManagerClient;
Expand Down Expand Up @@ -50,4 +50,4 @@ public static void asyncCreateCertificateIssuanceConfig() throws Exception {
}
}
}
// [END certificatemanager_v1_generated_certificatemanagerclient_createcertificateissuanceconfig_async]
// [END certificatemanager_v1_generated_CertificateManager_CreateCertificateIssuanceConfig_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START certificatemanager_v1_generated_certificatemanagerclient_createcertificateissuanceconfig_lro_async]
// [START certificatemanager_v1_generated_CertificateManager_CreateCertificateIssuanceConfig_LRO_async]
import com.google.api.gax.longrunning.OperationFuture;
import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig;
import com.google.cloud.certificatemanager.v1.CertificateManagerClient;
Expand Down Expand Up @@ -52,4 +52,4 @@ public static void asyncCreateCertificateIssuanceConfigLRO() throws Exception {
}
}
}
// [END certificatemanager_v1_generated_certificatemanagerclient_createcertificateissuanceconfig_lro_async]
// [END certificatemanager_v1_generated_CertificateManager_CreateCertificateIssuanceConfig_LRO_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START certificatemanager_v1_generated_certificatemanagerclient_createcertificateissuanceconfig_sync]
// [START certificatemanager_v1_generated_CertificateManager_CreateCertificateIssuanceConfig_sync]
import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig;
import com.google.cloud.certificatemanager.v1.CertificateManagerClient;
import com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest;
Expand Down Expand Up @@ -46,4 +46,4 @@ public static void syncCreateCertificateIssuanceConfig() throws Exception {
}
}
}
// [END certificatemanager_v1_generated_certificatemanagerclient_createcertificateissuanceconfig_sync]
// [END certificatemanager_v1_generated_CertificateManager_CreateCertificateIssuanceConfig_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START certificatemanager_v1_generated_certificatemanagerclient_createcertificateissuanceconfig_locationnamecertificateissuanceconfigstring_sync]
// [START certificatemanager_v1_generated_CertificateManager_CreateCertificateIssuanceConfig_LocationnameCertificateissuanceconfigString_sync]
import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig;
import com.google.cloud.certificatemanager.v1.CertificateManagerClient;
import com.google.cloud.certificatemanager.v1.LocationName;
Expand Down Expand Up @@ -48,4 +48,4 @@ public static void main(String[] args) throws Exception {
}
}
}
// [END certificatemanager_v1_generated_certificatemanagerclient_createcertificateissuanceconfig_locationnamecertificateissuanceconfigstring_sync]
// [END certificatemanager_v1_generated_CertificateManager_CreateCertificateIssuanceConfig_LocationnameCertificateissuanceconfigString_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START certificatemanager_v1_generated_certificatemanagerclient_createcertificateissuanceconfig_stringcertificateissuanceconfigstring_sync]
// [START certificatemanager_v1_generated_CertificateManager_CreateCertificateIssuanceConfig_StringCertificateissuanceconfigString_sync]
import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig;
import com.google.cloud.certificatemanager.v1.CertificateManagerClient;
import com.google.cloud.certificatemanager.v1.LocationName;
Expand Down Expand Up @@ -47,4 +47,4 @@ public static void syncCreateCertificateIssuanceConfigStringCertificateissuancec
}
}
}
// [END certificatemanager_v1_generated_certificatemanagerclient_createcertificateissuanceconfig_stringcertificateissuanceconfigstring_sync]
// [END certificatemanager_v1_generated_CertificateManager_CreateCertificateIssuanceConfig_StringCertificateissuanceconfigString_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START certificatemanager_v1_generated_certificatemanagerclient_createcertificatemap_async]
// [START certificatemanager_v1_generated_CertificateManager_CreateCertificateMap_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.certificatemanager.v1.CertificateManagerClient;
import com.google.cloud.certificatemanager.v1.CertificateMap;
Expand Down Expand Up @@ -50,4 +50,4 @@ public static void asyncCreateCertificateMap() throws Exception {
}
}
}
// [END certificatemanager_v1_generated_certificatemanagerclient_createcertificatemap_async]
// [END certificatemanager_v1_generated_CertificateManager_CreateCertificateMap_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START certificatemanager_v1_generated_certificatemanagerclient_createcertificatemap_lro_async]
// [START certificatemanager_v1_generated_CertificateManager_CreateCertificateMap_LRO_async]
import com.google.api.gax.longrunning.OperationFuture;
import com.google.cloud.certificatemanager.v1.CertificateManagerClient;
import com.google.cloud.certificatemanager.v1.CertificateMap;
Expand Down Expand Up @@ -50,4 +50,4 @@ public static void asyncCreateCertificateMapLRO() throws Exception {
}
}
}
// [END certificatemanager_v1_generated_certificatemanagerclient_createcertificatemap_lro_async]
// [END certificatemanager_v1_generated_CertificateManager_CreateCertificateMap_LRO_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START certificatemanager_v1_generated_certificatemanagerclient_createcertificatemap_sync]
// [START certificatemanager_v1_generated_CertificateManager_CreateCertificateMap_sync]
import com.google.cloud.certificatemanager.v1.CertificateManagerClient;
import com.google.cloud.certificatemanager.v1.CertificateMap;
import com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest;
Expand Down Expand Up @@ -45,4 +45,4 @@ public static void syncCreateCertificateMap() throws Exception {
}
}
}
// [END certificatemanager_v1_generated_certificatemanagerclient_createcertificatemap_sync]
// [END certificatemanager_v1_generated_CertificateManager_CreateCertificateMap_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START certificatemanager_v1_generated_certificatemanagerclient_createcertificatemap_locationnamecertificatemapstring_sync]
// [START certificatemanager_v1_generated_CertificateManager_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 Down Expand Up @@ -44,4 +44,4 @@ public static void syncCreateCertificateMapLocationnameCertificatemapString() th
}
}
}
// [END certificatemanager_v1_generated_certificatemanagerclient_createcertificatemap_locationnamecertificatemapstring_sync]
// [END certificatemanager_v1_generated_CertificateManager_CreateCertificateMap_LocationnameCertificatemapString_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START certificatemanager_v1_generated_certificatemanagerclient_createcertificatemap_stringcertificatemapstring_sync]
// [START certificatemanager_v1_generated_CertificateManager_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 Down Expand Up @@ -44,4 +44,4 @@ public static void syncCreateCertificateMapStringCertificatemapString() throws E
}
}
}
// [END certificatemanager_v1_generated_certificatemanagerclient_createcertificatemap_stringcertificatemapstring_sync]
// [END certificatemanager_v1_generated_CertificateManager_CreateCertificateMap_StringCertificatemapString_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START certificatemanager_v1_generated_certificatemanagerclient_createcertificatemapentry_async]
// [START certificatemanager_v1_generated_CertificateManager_CreateCertificateMapEntry_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.certificatemanager.v1.CertificateManagerClient;
import com.google.cloud.certificatemanager.v1.CertificateMapEntry;
Expand Down Expand Up @@ -51,4 +51,4 @@ public static void asyncCreateCertificateMapEntry() throws Exception {
}
}
}
// [END certificatemanager_v1_generated_certificatemanagerclient_createcertificatemapentry_async]
// [END certificatemanager_v1_generated_CertificateManager_CreateCertificateMapEntry_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START certificatemanager_v1_generated_certificatemanagerclient_createcertificatemapentry_lro_async]
// [START certificatemanager_v1_generated_CertificateManager_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 @@ -51,4 +51,4 @@ public static void asyncCreateCertificateMapEntryLRO() throws Exception {
}
}
}
// [END certificatemanager_v1_generated_certificatemanagerclient_createcertificatemapentry_lro_async]
// [END certificatemanager_v1_generated_CertificateManager_CreateCertificateMapEntry_LRO_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START certificatemanager_v1_generated_certificatemanagerclient_createcertificatemapentry_sync]
// [START certificatemanager_v1_generated_CertificateManager_CreateCertificateMapEntry_sync]
import com.google.cloud.certificatemanager.v1.CertificateManagerClient;
import com.google.cloud.certificatemanager.v1.CertificateMapEntry;
import com.google.cloud.certificatemanager.v1.CertificateMapName;
Expand Down Expand Up @@ -47,4 +47,4 @@ public static void syncCreateCertificateMapEntry() throws Exception {
}
}
}
// [END certificatemanager_v1_generated_certificatemanagerclient_createcertificatemapentry_sync]
// [END certificatemanager_v1_generated_CertificateManager_CreateCertificateMapEntry_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START certificatemanager_v1_generated_certificatemanagerclient_createcertificatemapentry_certificatemapnamecertificatemapentrystring_sync]
// [START certificatemanager_v1_generated_CertificateManager_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 Down Expand Up @@ -46,4 +46,4 @@ public static void syncCreateCertificateMapEntryCertificatemapnameCertificatemap
}
}
}
// [END certificatemanager_v1_generated_certificatemanagerclient_createcertificatemapentry_certificatemapnamecertificatemapentrystring_sync]
// [END certificatemanager_v1_generated_CertificateManager_CreateCertificateMapEntry_CertificatemapnameCertificatemapentryString_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START certificatemanager_v1_generated_certificatemanagerclient_createcertificatemapentry_stringcertificatemapentrystring_sync]
// [START certificatemanager_v1_generated_CertificateManager_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 Down Expand Up @@ -46,4 +46,4 @@ public static void syncCreateCertificateMapEntryStringCertificatemapentryString(
}
}
}
// [END certificatemanager_v1_generated_certificatemanagerclient_createcertificatemapentry_stringcertificatemapentrystring_sync]
// [END certificatemanager_v1_generated_CertificateManager_CreateCertificateMapEntry_StringCertificatemapentryString_sync]
Loading

0 comments on commit 8e502ed

Please sign in to comment.