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

- [ ] 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 a35cd8a commit d3c570c
Show file tree
Hide file tree
Showing 158 changed files with 316 additions and 334 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,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
* WebSecurityScannerSettings webSecurityScannerSettings =
* WebSecurityScannerSettings.newBuilder()
* .setTransportChannelProvider(
* WebSecurityScannerSettings.defaultHttpJsonTransportProviderBuilder().build())
* .build();
* WebSecurityScannerSettings.newHttpJsonBuilder().build();
* WebSecurityScannerClient webSecurityScannerClient =
* WebSecurityScannerClient.create(webSecurityScannerSettings);
* }</pre>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,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
* WebSecurityScannerSettings webSecurityScannerSettings =
* WebSecurityScannerSettings.newBuilder()
* .setTransportChannelProvider(
* WebSecurityScannerSettings.defaultHttpJsonTransportProviderBuilder().build())
* .build();
* WebSecurityScannerSettings.newHttpJsonBuilder().build();
* WebSecurityScannerClient webSecurityScannerClient =
* WebSecurityScannerClient.create(webSecurityScannerSettings);
* }</pre>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,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
* WebSecurityScannerSettings webSecurityScannerSettings =
* WebSecurityScannerSettings.newBuilder()
* .setTransportChannelProvider(
* WebSecurityScannerSettings.defaultHttpJsonTransportProviderBuilder().build())
* .build();
* WebSecurityScannerSettings.newHttpJsonBuilder().build();
* WebSecurityScannerClient webSecurityScannerClient =
* WebSecurityScannerClient.create(webSecurityScannerSettings);
* }</pre>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.websecurityscanner.v1.stub.samples;

// [START websecurityscanner_v1_generated_websecurityscannerstubsettings_createscanconfig_sync]
// [START websecurityscanner_v1_generated_WebSecurityScannerStubSettings_CreateScanConfig_sync]
import com.google.cloud.websecurityscanner.v1.stub.WebSecurityScannerStubSettings;
import java.time.Duration;

Expand Down Expand Up @@ -47,4 +47,4 @@ public static void syncCreateScanConfig() throws Exception {
webSecurityScannerSettingsBuilder.build();
}
}
// [END websecurityscanner_v1_generated_websecurityscannerstubsettings_createscanconfig_sync]
// [END websecurityscanner_v1_generated_WebSecurityScannerStubSettings_CreateScanConfig_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START websecurityscanner_v1_generated_websecurityscannerclient_create_setcredentialsprovider_sync]
// [START websecurityscanner_v1_generated_WebSecurityScanner_Create_SetCredentialsProvider_sync]
import com.google.api.gax.core.FixedCredentialsProvider;
import com.google.cloud.websecurityscanner.v1.WebSecurityScannerClient;
import com.google.cloud.websecurityscanner.v1.WebSecurityScannerSettings;
Expand All @@ -42,4 +42,4 @@ public static void syncCreateSetCredentialsProvider() throws Exception {
WebSecurityScannerClient.create(webSecurityScannerSettings);
}
}
// [END websecurityscanner_v1_generated_websecurityscannerclient_create_setcredentialsprovider_sync]
// [END websecurityscanner_v1_generated_WebSecurityScanner_Create_SetCredentialsProvider_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START websecurityscanner_v1_generated_websecurityscannerclient_create_setcredentialsprovider1_sync]
// [START websecurityscanner_v1_generated_WebSecurityScanner_Create_SetCredentialsProvider1_sync]
import com.google.cloud.websecurityscanner.v1.WebSecurityScannerClient;
import com.google.cloud.websecurityscanner.v1.WebSecurityScannerSettings;

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
WebSecurityScannerSettings webSecurityScannerSettings =
WebSecurityScannerSettings.newBuilder()
.setTransportChannelProvider(
WebSecurityScannerSettings.defaultHttpJsonTransportProviderBuilder().build())
.build();
WebSecurityScannerSettings.newHttpJsonBuilder().build();
WebSecurityScannerClient webSecurityScannerClient =
WebSecurityScannerClient.create(webSecurityScannerSettings);
}
}
// [END websecurityscanner_v1_generated_websecurityscannerclient_create_setcredentialsprovider1_sync]
// [END websecurityscanner_v1_generated_WebSecurityScanner_Create_SetCredentialsProvider1_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START websecurityscanner_v1_generated_websecurityscannerclient_create_setendpoint_sync]
// [START websecurityscanner_v1_generated_WebSecurityScanner_Create_SetEndpoint_sync]
import com.google.cloud.websecurityscanner.v1.WebSecurityScannerClient;
import com.google.cloud.websecurityscanner.v1.WebSecurityScannerSettings;
import com.google.cloud.websecurityscanner.v1.myEndpoint;
Expand All @@ -39,4 +39,4 @@ public static void syncCreateSetEndpoint() throws Exception {
WebSecurityScannerClient.create(webSecurityScannerSettings);
}
}
// [END websecurityscanner_v1_generated_websecurityscannerclient_create_setendpoint_sync]
// [END websecurityscanner_v1_generated_WebSecurityScanner_Create_SetEndpoint_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START websecurityscanner_v1_generated_websecurityscannerclient_createscanconfig_async]
// [START websecurityscanner_v1_generated_WebSecurityScanner_CreateScanConfig_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest;
import com.google.cloud.websecurityscanner.v1.ScanConfig;
Expand Down Expand Up @@ -47,4 +47,4 @@ public static void asyncCreateScanConfig() throws Exception {
}
}
}
// [END websecurityscanner_v1_generated_websecurityscannerclient_createscanconfig_async]
// [END websecurityscanner_v1_generated_WebSecurityScanner_CreateScanConfig_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START websecurityscanner_v1_generated_websecurityscannerclient_createscanconfig_sync]
// [START websecurityscanner_v1_generated_WebSecurityScanner_CreateScanConfig_sync]
import com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest;
import com.google.cloud.websecurityscanner.v1.ScanConfig;
import com.google.cloud.websecurityscanner.v1.WebSecurityScannerClient;
Expand All @@ -43,4 +43,4 @@ public static void syncCreateScanConfig() throws Exception {
}
}
}
// [END websecurityscanner_v1_generated_websecurityscannerclient_createscanconfig_sync]
// [END websecurityscanner_v1_generated_WebSecurityScanner_CreateScanConfig_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START websecurityscanner_v1_generated_websecurityscannerclient_deletescanconfig_async]
// [START websecurityscanner_v1_generated_WebSecurityScanner_DeleteScanConfig_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest;
import com.google.cloud.websecurityscanner.v1.WebSecurityScannerClient;
Expand Down Expand Up @@ -44,4 +44,4 @@ public static void asyncDeleteScanConfig() throws Exception {
}
}
}
// [END websecurityscanner_v1_generated_websecurityscannerclient_deletescanconfig_async]
// [END websecurityscanner_v1_generated_WebSecurityScanner_DeleteScanConfig_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START websecurityscanner_v1_generated_websecurityscannerclient_deletescanconfig_sync]
// [START websecurityscanner_v1_generated_WebSecurityScanner_DeleteScanConfig_sync]
import com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest;
import com.google.cloud.websecurityscanner.v1.WebSecurityScannerClient;
import com.google.protobuf.Empty;
Expand All @@ -40,4 +40,4 @@ public static void syncDeleteScanConfig() throws Exception {
}
}
}
// [END websecurityscanner_v1_generated_websecurityscannerclient_deletescanconfig_sync]
// [END websecurityscanner_v1_generated_WebSecurityScanner_DeleteScanConfig_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START websecurityscanner_v1_generated_websecurityscannerclient_getfinding_async]
// [START websecurityscanner_v1_generated_WebSecurityScanner_GetFinding_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.websecurityscanner.v1.Finding;
import com.google.cloud.websecurityscanner.v1.GetFindingRequest;
Expand All @@ -42,4 +42,4 @@ public static void asyncGetFinding() throws Exception {
}
}
}
// [END websecurityscanner_v1_generated_websecurityscannerclient_getfinding_async]
// [END websecurityscanner_v1_generated_WebSecurityScanner_GetFinding_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START websecurityscanner_v1_generated_websecurityscannerclient_getfinding_sync]
// [START websecurityscanner_v1_generated_WebSecurityScanner_GetFinding_sync]
import com.google.cloud.websecurityscanner.v1.Finding;
import com.google.cloud.websecurityscanner.v1.GetFindingRequest;
import com.google.cloud.websecurityscanner.v1.WebSecurityScannerClient;
Expand All @@ -39,4 +39,4 @@ public static void syncGetFinding() throws Exception {
}
}
}
// [END websecurityscanner_v1_generated_websecurityscannerclient_getfinding_sync]
// [END websecurityscanner_v1_generated_WebSecurityScanner_GetFinding_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START websecurityscanner_v1_generated_websecurityscannerclient_getscanconfig_async]
// [START websecurityscanner_v1_generated_WebSecurityScanner_GetScanConfig_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.websecurityscanner.v1.GetScanConfigRequest;
import com.google.cloud.websecurityscanner.v1.ScanConfig;
Expand Down Expand Up @@ -44,4 +44,4 @@ public static void asyncGetScanConfig() throws Exception {
}
}
}
// [END websecurityscanner_v1_generated_websecurityscannerclient_getscanconfig_async]
// [END websecurityscanner_v1_generated_WebSecurityScanner_GetScanConfig_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START websecurityscanner_v1_generated_websecurityscannerclient_getscanconfig_sync]
// [START websecurityscanner_v1_generated_WebSecurityScanner_GetScanConfig_sync]
import com.google.cloud.websecurityscanner.v1.GetScanConfigRequest;
import com.google.cloud.websecurityscanner.v1.ScanConfig;
import com.google.cloud.websecurityscanner.v1.WebSecurityScannerClient;
Expand All @@ -40,4 +40,4 @@ public static void syncGetScanConfig() throws Exception {
}
}
}
// [END websecurityscanner_v1_generated_websecurityscannerclient_getscanconfig_sync]
// [END websecurityscanner_v1_generated_WebSecurityScanner_GetScanConfig_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START websecurityscanner_v1_generated_websecurityscannerclient_getscanrun_async]
// [START websecurityscanner_v1_generated_WebSecurityScanner_GetScanRun_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.websecurityscanner.v1.GetScanRunRequest;
import com.google.cloud.websecurityscanner.v1.ScanRun;
Expand All @@ -42,4 +42,4 @@ public static void asyncGetScanRun() throws Exception {
}
}
}
// [END websecurityscanner_v1_generated_websecurityscannerclient_getscanrun_async]
// [END websecurityscanner_v1_generated_WebSecurityScanner_GetScanRun_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START websecurityscanner_v1_generated_websecurityscannerclient_getscanrun_sync]
// [START websecurityscanner_v1_generated_WebSecurityScanner_GetScanRun_sync]
import com.google.cloud.websecurityscanner.v1.GetScanRunRequest;
import com.google.cloud.websecurityscanner.v1.ScanRun;
import com.google.cloud.websecurityscanner.v1.WebSecurityScannerClient;
Expand All @@ -39,4 +39,4 @@ public static void syncGetScanRun() throws Exception {
}
}
}
// [END websecurityscanner_v1_generated_websecurityscannerclient_getscanrun_sync]
// [END websecurityscanner_v1_generated_WebSecurityScanner_GetScanRun_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START websecurityscanner_v1_generated_websecurityscannerclient_listcrawledurls_async]
// [START websecurityscanner_v1_generated_WebSecurityScanner_ListCrawledUrls_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.websecurityscanner.v1.CrawledUrl;
import com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest;
Expand Down Expand Up @@ -50,4 +50,4 @@ public static void asyncListCrawledUrls() throws Exception {
}
}
}
// [END websecurityscanner_v1_generated_websecurityscannerclient_listcrawledurls_async]
// [END websecurityscanner_v1_generated_WebSecurityScanner_ListCrawledUrls_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START websecurityscanner_v1_generated_websecurityscannerclient_listcrawledurls_paged_async]
// [START websecurityscanner_v1_generated_WebSecurityScanner_ListCrawledUrls_Paged_async]
import com.google.cloud.websecurityscanner.v1.CrawledUrl;
import com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest;
import com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse;
Expand Down Expand Up @@ -58,4 +58,4 @@ public static void asyncListCrawledUrlsPaged() throws Exception {
}
}
}
// [END websecurityscanner_v1_generated_websecurityscannerclient_listcrawledurls_paged_async]
// [END websecurityscanner_v1_generated_WebSecurityScanner_ListCrawledUrls_Paged_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START websecurityscanner_v1_generated_websecurityscannerclient_listcrawledurls_sync]
// [START websecurityscanner_v1_generated_WebSecurityScanner_ListCrawledUrls_sync]
import com.google.cloud.websecurityscanner.v1.CrawledUrl;
import com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest;
import com.google.cloud.websecurityscanner.v1.WebSecurityScannerClient;
Expand Down Expand Up @@ -46,4 +46,4 @@ public static void syncListCrawledUrls() throws Exception {
}
}
}
// [END websecurityscanner_v1_generated_websecurityscannerclient_listcrawledurls_sync]
// [END websecurityscanner_v1_generated_WebSecurityScanner_ListCrawledUrls_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START websecurityscanner_v1_generated_websecurityscannerclient_listfindings_async]
// [START websecurityscanner_v1_generated_WebSecurityScanner_ListFindings_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.websecurityscanner.v1.Finding;
import com.google.cloud.websecurityscanner.v1.ListFindingsRequest;
Expand Down Expand Up @@ -51,4 +51,4 @@ public static void asyncListFindings() throws Exception {
}
}
}
// [END websecurityscanner_v1_generated_websecurityscannerclient_listfindings_async]
// [END websecurityscanner_v1_generated_WebSecurityScanner_ListFindings_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START websecurityscanner_v1_generated_websecurityscannerclient_listfindings_paged_async]
// [START websecurityscanner_v1_generated_WebSecurityScanner_ListFindings_Paged_async]
import com.google.cloud.websecurityscanner.v1.Finding;
import com.google.cloud.websecurityscanner.v1.ListFindingsRequest;
import com.google.cloud.websecurityscanner.v1.ListFindingsResponse;
Expand Down Expand Up @@ -59,4 +59,4 @@ public static void asyncListFindingsPaged() throws Exception {
}
}
}
// [END websecurityscanner_v1_generated_websecurityscannerclient_listfindings_paged_async]
// [END websecurityscanner_v1_generated_WebSecurityScanner_ListFindings_Paged_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START websecurityscanner_v1_generated_websecurityscannerclient_listfindings_sync]
// [START websecurityscanner_v1_generated_WebSecurityScanner_ListFindings_sync]
import com.google.cloud.websecurityscanner.v1.Finding;
import com.google.cloud.websecurityscanner.v1.ListFindingsRequest;
import com.google.cloud.websecurityscanner.v1.WebSecurityScannerClient;
Expand Down Expand Up @@ -47,4 +47,4 @@ public static void syncListFindings() throws Exception {
}
}
}
// [END websecurityscanner_v1_generated_websecurityscannerclient_listfindings_sync]
// [END websecurityscanner_v1_generated_WebSecurityScanner_ListFindings_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START websecurityscanner_v1_generated_websecurityscannerclient_listfindingtypestats_async]
// [START websecurityscanner_v1_generated_WebSecurityScanner_ListFindingTypeStats_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest;
import com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse;
Expand Down Expand Up @@ -44,4 +44,4 @@ public static void asyncListFindingTypeStats() throws Exception {
}
}
}
// [END websecurityscanner_v1_generated_websecurityscannerclient_listfindingtypestats_async]
// [END websecurityscanner_v1_generated_WebSecurityScanner_ListFindingTypeStats_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START websecurityscanner_v1_generated_websecurityscannerclient_listfindingtypestats_sync]
// [START websecurityscanner_v1_generated_WebSecurityScanner_ListFindingTypeStats_sync]
import com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest;
import com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse;
import com.google.cloud.websecurityscanner.v1.WebSecurityScannerClient;
Expand All @@ -41,4 +41,4 @@ public static void syncListFindingTypeStats() throws Exception {
}
}
}
// [END websecurityscanner_v1_generated_websecurityscannerclient_listfindingtypestats_sync]
// [END websecurityscanner_v1_generated_WebSecurityScanner_ListFindingTypeStats_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

// [START websecurityscanner_v1_generated_websecurityscannerclient_listscanconfigs_async]
// [START websecurityscanner_v1_generated_WebSecurityScanner_ListScanConfigs_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest;
import com.google.cloud.websecurityscanner.v1.ScanConfig;
Expand Down Expand Up @@ -50,4 +50,4 @@ public static void asyncListScanConfigs() throws Exception {
}
}
}
// [END websecurityscanner_v1_generated_websecurityscannerclient_listscanconfigs_async]
// [END websecurityscanner_v1_generated_WebSecurityScanner_ListScanConfigs_async]
Loading

0 comments on commit d3c570c

Please sign in to comment.