diff --git a/java-websecurityscanner/README.md b/java-websecurityscanner/README.md index c2d78d8f87dd..61ad5844e12c 100644 --- a/java-websecurityscanner/README.md +++ b/java-websecurityscanner/README.md @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-websecurityscanner' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-websecurityscanner:2.2.3' +implementation 'com.google.cloud:google-cloud-websecurityscanner:2.2.4' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-websecurityscanner" % "2.2.3" +libraryDependencies += "com.google.cloud" % "google-cloud-websecurityscanner" % "2.2.4" ``` ## Authentication diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java index d05e528762a0..902aa9aa485b 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java +++ b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java @@ -43,8 +43,11 @@ * calls that map to API methods. Sample code to get started: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * CreateScanConfigRequest request = * CreateScanConfigRequest.newBuilder() @@ -85,8 +88,11 @@ *To customize credentials: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -98,8 +104,11 @@ *To customize the endpoint: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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().setEndpoint(myEndpoint).build(); * WebSecurityScannerClient webSecurityScannerClient = @@ -110,8 +119,11 @@ * the wire: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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( @@ -180,8 +192,11 @@ public WebSecurityScannerStub getStub() { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * CreateScanConfigRequest request = * CreateScanConfigRequest.newBuilder() @@ -206,8 +221,11 @@ public final ScanConfig createScanConfig(CreateScanConfigRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * CreateScanConfigRequest request = * CreateScanConfigRequest.newBuilder() @@ -232,8 +250,11 @@ public final UnaryCallablecreateScanConfig * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * DeleteScanConfigRequest request = * DeleteScanConfigRequest.newBuilder().setName("name3373707").build(); @@ -255,8 +276,11 @@ public final void deleteScanConfig(DeleteScanConfigRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * DeleteScanConfigRequest request = * DeleteScanConfigRequest.newBuilder().setName("name3373707").build(); @@ -278,8 +302,11 @@ public final UnaryCallabledeleteScanConfigCalla * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * GetScanConfigRequest request = * GetScanConfigRequest.newBuilder().setName("name3373707").build(); @@ -301,8 +328,11 @@ public final ScanConfig getScanConfig(GetScanConfigRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * GetScanConfigRequest request = * GetScanConfigRequest.newBuilder().setName("name3373707").build(); @@ -324,8 +354,11 @@ public final UnaryCallablegetScanConfigCallab * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ListScanConfigsRequest request = * ListScanConfigsRequest.newBuilder() @@ -353,8 +386,11 @@ public final ListScanConfigsPagedResponse listScanConfigs(ListScanConfigsRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ListScanConfigsRequest request = * ListScanConfigsRequest.newBuilder() @@ -383,8 +419,11 @@ public final ListScanConfigsPagedResponse listScanConfigs(ListScanConfigsRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ListScanConfigsRequest request = * ListScanConfigsRequest.newBuilder() @@ -420,8 +459,11 @@ public final ListScanConfigsPagedResponse listScanConfigs(ListScanConfigsRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * UpdateScanConfigRequest request = * UpdateScanConfigRequest.newBuilder() @@ -446,8 +488,11 @@ public final ScanConfig updateScanConfig(UpdateScanConfigRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * UpdateScanConfigRequest request = * UpdateScanConfigRequest.newBuilder() @@ -472,8 +517,11 @@ public final UnaryCallableupdateScanConfig * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * StartScanRunRequest request = StartScanRunRequest.newBuilder().setName("name3373707").build(); * ScanRun response = webSecurityScannerClient.startScanRun(request); @@ -494,8 +542,11 @@ public final ScanRun startScanRun(StartScanRunRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * StartScanRunRequest request = StartScanRunRequest.newBuilder().setName("name3373707").build(); * ApiFuturefuture = @@ -516,8 +567,11 @@ public final UnaryCallable startScanRunCallable() * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * GetScanRunRequest request = GetScanRunRequest.newBuilder().setName("name3373707").build(); * ScanRun response = webSecurityScannerClient.getScanRun(request); @@ -538,8 +592,11 @@ public final ScanRun getScanRun(GetScanRunRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * GetScanRunRequest request = GetScanRunRequest.newBuilder().setName("name3373707").build(); * ApiFuturefuture = webSecurityScannerClient.getScanRunCallable().futureCall(request); @@ -559,8 +616,11 @@ public final UnaryCallable getScanRunCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ListScanRunsRequest request = * ListScanRunsRequest.newBuilder() @@ -588,8 +648,11 @@ public final ListScanRunsPagedResponse listScanRuns(ListScanRunsRequest request) *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ListScanRunsRequest request = * ListScanRunsRequest.newBuilder() @@ -618,8 +681,11 @@ public final ListScanRunsPagedResponse listScanRuns(ListScanRunsRequest request) *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ListScanRunsRequest request = * ListScanRunsRequest.newBuilder() @@ -654,8 +720,11 @@ public final UnaryCallablelistScanRu * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * StopScanRunRequest request = StopScanRunRequest.newBuilder().setName("name3373707").build(); * ScanRun response = webSecurityScannerClient.stopScanRun(request); @@ -676,8 +745,11 @@ public final ScanRun stopScanRun(StopScanRunRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * StopScanRunRequest request = StopScanRunRequest.newBuilder().setName("name3373707").build(); * ApiFuturefuture = @@ -698,8 +770,11 @@ public final UnaryCallable stopScanRunCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ListCrawledUrlsRequest request = * ListCrawledUrlsRequest.newBuilder() @@ -727,8 +802,11 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ListCrawledUrlsRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ListCrawledUrlsRequest request = * ListCrawledUrlsRequest.newBuilder() @@ -757,8 +835,11 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ListCrawledUrlsRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ListCrawledUrlsRequest request = * ListCrawledUrlsRequest.newBuilder() @@ -794,8 +875,11 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ListCrawledUrlsRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * GetFindingRequest request = GetFindingRequest.newBuilder().setName("name3373707").build(); * Finding response = webSecurityScannerClient.getFinding(request); @@ -816,8 +900,11 @@ public final Finding getFinding(GetFindingRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * GetFindingRequest request = GetFindingRequest.newBuilder().setName("name3373707").build(); * ApiFuturefuture = webSecurityScannerClient.getFindingCallable().futureCall(request); @@ -837,8 +924,11 @@ public final UnaryCallable getFindingCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ListFindingsRequest request = * ListFindingsRequest.newBuilder() @@ -867,8 +957,11 @@ public final ListFindingsPagedResponse listFindings(ListFindingsRequest request) *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ListFindingsRequest request = * ListFindingsRequest.newBuilder() @@ -898,8 +991,11 @@ public final ListFindingsPagedResponse listFindings(ListFindingsRequest request) *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ListFindingsRequest request = * ListFindingsRequest.newBuilder() @@ -935,8 +1031,11 @@ public final UnaryCallablelistFindin * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ListFindingTypeStatsRequest request = * ListFindingTypeStatsRequest.newBuilder().setParent("parent-995424086").build(); @@ -960,8 +1059,11 @@ public final ListFindingTypeStatsResponse listFindingTypeStats( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ListFindingTypeStatsRequest request = * ListFindingTypeStatsRequest.newBuilder().setParent("parent-995424086").build(); diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java index 838d61011525..e40dd1dfffa7 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java +++ b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java @@ -58,8 +58,11 @@ *For example, to set the total timeout of createScanConfig to 30 seconds: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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.Builder webSecurityScannerSettingsBuilder = * WebSecurityScannerSettings.newBuilder(); * webSecurityScannerSettingsBuilder diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/package-info.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/package-info.java index d6a9036307be..3b7c55f74c91 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/package-info.java +++ b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/package-info.java @@ -28,8 +28,11 @@ *Sample for WebSecurityScannerClient: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * CreateScanConfigRequest request = * CreateScanConfigRequest.newBuilder() diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerStub.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerStub.java index 448c4ade7cea..a8cfd73b00d3 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerStub.java +++ b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerStub.java @@ -103,7 +103,7 @@ public class HttpJsonWebSecurityScannerStub extends WebSecurityScannerStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("scanConfig", request.getScanConfig())) + .toBody("scanConfig", request.getScanConfig(), false)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -246,7 +246,7 @@ public class HttpJsonWebSecurityScannerStub extends WebSecurityScannerStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("scanConfig", request.getScanConfig())) + .toBody("scanConfig", request.getScanConfig(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -283,7 +283,7 @@ public class HttpJsonWebSecurityScannerStub extends WebSecurityScannerStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -388,7 +388,7 @@ public class HttpJsonWebSecurityScannerStub extends WebSecurityScannerStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java index 863dfae89725..5ee7c49a84d6 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java +++ b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java @@ -97,8 +97,11 @@ * For example, to set the total timeout of createScanConfig to 30 seconds: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * WebSecurityScannerStubSettings.Builder webSecurityScannerSettingsBuilder = * WebSecurityScannerStubSettings.newBuilder(); * webSecurityScannerSettingsBuilder diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java index 6b4db15ed791..c64f3441dd90 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java +++ b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java @@ -45,8 +45,11 @@ * calls that map to API methods. Sample code to get started: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * ScanConfig scanConfig = ScanConfig.newBuilder().build(); @@ -84,8 +87,11 @@ *To customize credentials: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -97,8 +103,11 @@ *To customize the endpoint: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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().setEndpoint(myEndpoint).build(); * WebSecurityScannerClient webSecurityScannerClient = @@ -109,8 +118,11 @@ * the wire: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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( @@ -180,8 +192,11 @@ public WebSecurityScannerStub getStub() { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * ScanConfig scanConfig = ScanConfig.newBuilder().build(); @@ -210,8 +225,11 @@ public final ScanConfig createScanConfig(ProjectName parent, ScanConfig scanConf *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * String parent = ProjectName.of("[PROJECT]").toString(); * ScanConfig scanConfig = ScanConfig.newBuilder().build(); @@ -237,8 +255,11 @@ public final ScanConfig createScanConfig(String parent, ScanConfig scanConfig) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * CreateScanConfigRequest request = * CreateScanConfigRequest.newBuilder() @@ -263,8 +284,11 @@ public final ScanConfig createScanConfig(CreateScanConfigRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * CreateScanConfigRequest request = * CreateScanConfigRequest.newBuilder() @@ -289,8 +313,11 @@ public final UnaryCallablecreateScanConfig * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]"); * webSecurityScannerClient.deleteScanConfig(name); @@ -314,8 +341,11 @@ public final void deleteScanConfig(ScanConfigName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * String name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString(); * webSecurityScannerClient.deleteScanConfig(name); @@ -338,8 +368,11 @@ public final void deleteScanConfig(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * DeleteScanConfigRequest request = * DeleteScanConfigRequest.newBuilder() @@ -363,8 +396,11 @@ public final void deleteScanConfig(DeleteScanConfigRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * DeleteScanConfigRequest request = * DeleteScanConfigRequest.newBuilder() @@ -388,8 +424,11 @@ public final UnaryCallabledeleteScanConfigCalla * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]"); * ScanConfig response = webSecurityScannerClient.getScanConfig(name); @@ -413,8 +452,11 @@ public final ScanConfig getScanConfig(ScanConfigName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * String name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString(); * ScanConfig response = webSecurityScannerClient.getScanConfig(name); @@ -437,8 +479,11 @@ public final ScanConfig getScanConfig(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * GetScanConfigRequest request = * GetScanConfigRequest.newBuilder() @@ -462,8 +507,11 @@ public final ScanConfig getScanConfig(GetScanConfigRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * GetScanConfigRequest request = * GetScanConfigRequest.newBuilder() @@ -487,8 +535,11 @@ public final UnaryCallablegetScanConfigCallab * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * for (ScanConfig element : webSecurityScannerClient.listScanConfigs(parent).iterateAll()) { @@ -516,8 +567,11 @@ public final ListScanConfigsPagedResponse listScanConfigs(ProjectName parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * String parent = ProjectName.of("[PROJECT]").toString(); * for (ScanConfig element : webSecurityScannerClient.listScanConfigs(parent).iterateAll()) { @@ -542,8 +596,11 @@ public final ListScanConfigsPagedResponse listScanConfigs(String parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ListScanConfigsRequest request = * ListScanConfigsRequest.newBuilder() @@ -571,8 +628,11 @@ public final ListScanConfigsPagedResponse listScanConfigs(ListScanConfigsRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ListScanConfigsRequest request = * ListScanConfigsRequest.newBuilder() @@ -601,8 +661,11 @@ public final ListScanConfigsPagedResponse listScanConfigs(ListScanConfigsRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ListScanConfigsRequest request = * ListScanConfigsRequest.newBuilder() @@ -638,8 +701,11 @@ public final ListScanConfigsPagedResponse listScanConfigs(ListScanConfigsRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ScanConfig scanConfig = ScanConfig.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -671,8 +737,11 @@ public final ScanConfig updateScanConfig(ScanConfig scanConfig, FieldMask update *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * UpdateScanConfigRequest request = * UpdateScanConfigRequest.newBuilder() @@ -697,8 +766,11 @@ public final ScanConfig updateScanConfig(UpdateScanConfigRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * UpdateScanConfigRequest request = * UpdateScanConfigRequest.newBuilder() @@ -723,8 +795,11 @@ public final UnaryCallableupdateScanConfig * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]"); * ScanRun response = webSecurityScannerClient.startScanRun(name); @@ -748,8 +823,11 @@ public final ScanRun startScanRun(ScanConfigName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * String name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString(); * ScanRun response = webSecurityScannerClient.startScanRun(name); @@ -772,8 +850,11 @@ public final ScanRun startScanRun(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * StartScanRunRequest request = * StartScanRunRequest.newBuilder() @@ -797,8 +878,11 @@ public final ScanRun startScanRun(StartScanRunRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * StartScanRunRequest request = * StartScanRunRequest.newBuilder() @@ -822,8 +906,11 @@ public final UnaryCallablestartScanRunCallable() * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ScanRunName name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); * ScanRun response = webSecurityScannerClient.getScanRun(name); @@ -847,8 +934,11 @@ public final ScanRun getScanRun(ScanRunName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * String name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString(); * ScanRun response = webSecurityScannerClient.getScanRun(name); @@ -871,8 +961,11 @@ public final ScanRun getScanRun(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * GetScanRunRequest request = * GetScanRunRequest.newBuilder() @@ -896,8 +989,11 @@ public final ScanRun getScanRun(GetScanRunRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * GetScanRunRequest request = * GetScanRunRequest.newBuilder() @@ -920,8 +1016,11 @@ public final UnaryCallablegetScanRunCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ScanConfigName parent = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]"); * for (ScanRun element : webSecurityScannerClient.listScanRuns(parent).iterateAll()) { @@ -949,8 +1048,11 @@ public final ListScanRunsPagedResponse listScanRuns(ScanConfigName parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * String parent = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString(); * for (ScanRun element : webSecurityScannerClient.listScanRuns(parent).iterateAll()) { @@ -975,8 +1077,11 @@ public final ListScanRunsPagedResponse listScanRuns(String parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ListScanRunsRequest request = * ListScanRunsRequest.newBuilder() @@ -1004,8 +1109,11 @@ public final ListScanRunsPagedResponse listScanRuns(ListScanRunsRequest request) *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ListScanRunsRequest request = * ListScanRunsRequest.newBuilder() @@ -1034,8 +1142,11 @@ public final ListScanRunsPagedResponse listScanRuns(ListScanRunsRequest request) *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ListScanRunsRequest request = * ListScanRunsRequest.newBuilder() @@ -1070,8 +1181,11 @@ public final UnaryCallablelistScanRu * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ScanRunName name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); * ScanRun response = webSecurityScannerClient.stopScanRun(name); @@ -1095,8 +1209,11 @@ public final ScanRun stopScanRun(ScanRunName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * String name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString(); * ScanRun response = webSecurityScannerClient.stopScanRun(name); @@ -1119,8 +1236,11 @@ public final ScanRun stopScanRun(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * StopScanRunRequest request = * StopScanRunRequest.newBuilder() @@ -1144,8 +1264,11 @@ public final ScanRun stopScanRun(StopScanRunRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * StopScanRunRequest request = * StopScanRunRequest.newBuilder() @@ -1169,8 +1292,11 @@ public final UnaryCallablestopScanRunCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); * for (CrawledUrl element : webSecurityScannerClient.listCrawledUrls(parent).iterateAll()) { @@ -1198,8 +1324,11 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ScanRunName parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * String parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString(); * for (CrawledUrl element : webSecurityScannerClient.listCrawledUrls(parent).iterateAll()) { @@ -1224,8 +1353,11 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(String parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ListCrawledUrlsRequest request = * ListCrawledUrlsRequest.newBuilder() @@ -1253,8 +1385,11 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ListCrawledUrlsRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ListCrawledUrlsRequest request = * ListCrawledUrlsRequest.newBuilder() @@ -1283,8 +1418,11 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ListCrawledUrlsRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ListCrawledUrlsRequest request = * ListCrawledUrlsRequest.newBuilder() @@ -1320,8 +1458,11 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ListCrawledUrlsRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * FindingName name = FindingName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]", "[FINDING]"); * Finding response = webSecurityScannerClient.getFinding(name); @@ -1346,8 +1487,11 @@ public final Finding getFinding(FindingName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * String name = * FindingName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]", "[FINDING]").toString(); @@ -1372,8 +1516,11 @@ public final Finding getFinding(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * GetFindingRequest request = * GetFindingRequest.newBuilder() @@ -1399,8 +1546,11 @@ public final Finding getFinding(GetFindingRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * GetFindingRequest request = * GetFindingRequest.newBuilder() @@ -1425,8 +1575,11 @@ public final UnaryCallablegetFindingCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); * String filter = "filter-1274492040"; @@ -1459,8 +1612,11 @@ public final ListFindingsPagedResponse listFindings(ScanRunName parent, String f *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * String parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString(); * String filter = "filter-1274492040"; @@ -1490,8 +1646,11 @@ public final ListFindingsPagedResponse listFindings(String parent, String filter *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ListFindingsRequest request = * ListFindingsRequest.newBuilder() @@ -1520,8 +1679,11 @@ public final ListFindingsPagedResponse listFindings(ListFindingsRequest request) *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ListFindingsRequest request = * ListFindingsRequest.newBuilder() @@ -1551,8 +1713,11 @@ public final ListFindingsPagedResponse listFindings(ListFindingsRequest request) *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ListFindingsRequest request = * ListFindingsRequest.newBuilder() @@ -1588,8 +1753,11 @@ public final UnaryCallablelistFindin * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); * ListFindingTypeStatsResponse response = webSecurityScannerClient.listFindingTypeStats(parent); @@ -1615,8 +1783,11 @@ public final ListFindingTypeStatsResponse listFindingTypeStats(ScanRunName paren *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * String parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString(); * ListFindingTypeStatsResponse response = webSecurityScannerClient.listFindingTypeStats(parent); @@ -1640,8 +1811,11 @@ public final ListFindingTypeStatsResponse listFindingTypeStats(String parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ListFindingTypeStatsRequest request = * ListFindingTypeStatsRequest.newBuilder() @@ -1667,8 +1841,11 @@ public final ListFindingTypeStatsResponse listFindingTypeStats( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ListFindingTypeStatsRequest request = * ListFindingTypeStatsRequest.newBuilder() diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerSettings.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerSettings.java index 430ab76314e7..bda9e7a8d3f8 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerSettings.java +++ b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerSettings.java @@ -58,8 +58,11 @@ *For example, to set the total timeout of createScanConfig to 30 seconds: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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.Builder webSecurityScannerSettingsBuilder = * WebSecurityScannerSettings.newBuilder(); * webSecurityScannerSettingsBuilder diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/package-info.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/package-info.java index 381caba4d965..1a03cc9f76c6 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/package-info.java +++ b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/package-info.java @@ -26,8 +26,11 @@ *Sample for WebSecurityScannerClient: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * ScanConfig scanConfig = ScanConfig.newBuilder().build(); diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerStub.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerStub.java index 12f0943ee5fa..930ee98dae1a 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerStub.java +++ b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerStub.java @@ -103,7 +103,7 @@ public class HttpJsonWebSecurityScannerStub extends WebSecurityScannerStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("scanConfig", request.getScanConfig())) + .toBody("scanConfig", request.getScanConfig(), false)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -246,7 +246,7 @@ public class HttpJsonWebSecurityScannerStub extends WebSecurityScannerStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("scanConfig", request.getScanConfig())) + .toBody("scanConfig", request.getScanConfig(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -283,7 +283,7 @@ public class HttpJsonWebSecurityScannerStub extends WebSecurityScannerStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -389,7 +389,7 @@ public class HttpJsonWebSecurityScannerStub extends WebSecurityScannerStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java index 518a4b1ccb82..c6f39f47483e 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java +++ b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java @@ -97,8 +97,11 @@ * For example, to set the total timeout of createScanConfig to 30 seconds: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * WebSecurityScannerStubSettings.Builder webSecurityScannerSettingsBuilder = * WebSecurityScannerStubSettings.newBuilder(); * webSecurityScannerSettingsBuilder diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java index 1cb0a29d15d2..d8ac65d3643f 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java +++ b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java @@ -45,8 +45,11 @@ * calls that map to API methods. Sample code to get started: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * ScanConfig scanConfig = ScanConfig.newBuilder().build(); @@ -84,8 +87,11 @@ *To customize credentials: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -97,8 +103,11 @@ *To customize the endpoint: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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().setEndpoint(myEndpoint).build(); * WebSecurityScannerClient webSecurityScannerClient = @@ -109,8 +118,11 @@ * the wire: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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( @@ -180,8 +192,11 @@ public WebSecurityScannerStub getStub() { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * ScanConfig scanConfig = ScanConfig.newBuilder().build(); @@ -210,8 +225,11 @@ public final ScanConfig createScanConfig(ProjectName parent, ScanConfig scanConf *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * String parent = ProjectName.of("[PROJECT]").toString(); * ScanConfig scanConfig = ScanConfig.newBuilder().build(); @@ -237,8 +255,11 @@ public final ScanConfig createScanConfig(String parent, ScanConfig scanConfig) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * CreateScanConfigRequest request = * CreateScanConfigRequest.newBuilder() @@ -263,8 +284,11 @@ public final ScanConfig createScanConfig(CreateScanConfigRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * CreateScanConfigRequest request = * CreateScanConfigRequest.newBuilder() @@ -289,8 +313,11 @@ public final UnaryCallablecreateScanConfig * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]"); * webSecurityScannerClient.deleteScanConfig(name); @@ -314,8 +341,11 @@ public final void deleteScanConfig(ScanConfigName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * String name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString(); * webSecurityScannerClient.deleteScanConfig(name); @@ -338,8 +368,11 @@ public final void deleteScanConfig(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * DeleteScanConfigRequest request = * DeleteScanConfigRequest.newBuilder() @@ -363,8 +396,11 @@ public final void deleteScanConfig(DeleteScanConfigRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * DeleteScanConfigRequest request = * DeleteScanConfigRequest.newBuilder() @@ -388,8 +424,11 @@ public final UnaryCallabledeleteScanConfigCalla * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]"); * ScanConfig response = webSecurityScannerClient.getScanConfig(name); @@ -413,8 +452,11 @@ public final ScanConfig getScanConfig(ScanConfigName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * String name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString(); * ScanConfig response = webSecurityScannerClient.getScanConfig(name); @@ -437,8 +479,11 @@ public final ScanConfig getScanConfig(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * GetScanConfigRequest request = * GetScanConfigRequest.newBuilder() @@ -462,8 +507,11 @@ public final ScanConfig getScanConfig(GetScanConfigRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * GetScanConfigRequest request = * GetScanConfigRequest.newBuilder() @@ -487,8 +535,11 @@ public final UnaryCallablegetScanConfigCallab * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * for (ScanConfig element : webSecurityScannerClient.listScanConfigs(parent).iterateAll()) { @@ -516,8 +567,11 @@ public final ListScanConfigsPagedResponse listScanConfigs(ProjectName parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * String parent = ProjectName.of("[PROJECT]").toString(); * for (ScanConfig element : webSecurityScannerClient.listScanConfigs(parent).iterateAll()) { @@ -542,8 +596,11 @@ public final ListScanConfigsPagedResponse listScanConfigs(String parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ListScanConfigsRequest request = * ListScanConfigsRequest.newBuilder() @@ -571,8 +628,11 @@ public final ListScanConfigsPagedResponse listScanConfigs(ListScanConfigsRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ListScanConfigsRequest request = * ListScanConfigsRequest.newBuilder() @@ -601,8 +661,11 @@ public final ListScanConfigsPagedResponse listScanConfigs(ListScanConfigsRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ListScanConfigsRequest request = * ListScanConfigsRequest.newBuilder() @@ -638,8 +701,11 @@ public final ListScanConfigsPagedResponse listScanConfigs(ListScanConfigsRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ScanConfig scanConfig = ScanConfig.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -671,8 +737,11 @@ public final ScanConfig updateScanConfig(ScanConfig scanConfig, FieldMask update *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * UpdateScanConfigRequest request = * UpdateScanConfigRequest.newBuilder() @@ -697,8 +766,11 @@ public final ScanConfig updateScanConfig(UpdateScanConfigRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * UpdateScanConfigRequest request = * UpdateScanConfigRequest.newBuilder() @@ -723,8 +795,11 @@ public final UnaryCallableupdateScanConfig * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]"); * ScanRun response = webSecurityScannerClient.startScanRun(name); @@ -748,8 +823,11 @@ public final ScanRun startScanRun(ScanConfigName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * String name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString(); * ScanRun response = webSecurityScannerClient.startScanRun(name); @@ -772,8 +850,11 @@ public final ScanRun startScanRun(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * StartScanRunRequest request = * StartScanRunRequest.newBuilder() @@ -797,8 +878,11 @@ public final ScanRun startScanRun(StartScanRunRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * StartScanRunRequest request = * StartScanRunRequest.newBuilder() @@ -822,8 +906,11 @@ public final UnaryCallablestartScanRunCallable() * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ScanRunName name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); * ScanRun response = webSecurityScannerClient.getScanRun(name); @@ -847,8 +934,11 @@ public final ScanRun getScanRun(ScanRunName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * String name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString(); * ScanRun response = webSecurityScannerClient.getScanRun(name); @@ -871,8 +961,11 @@ public final ScanRun getScanRun(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * GetScanRunRequest request = * GetScanRunRequest.newBuilder() @@ -896,8 +989,11 @@ public final ScanRun getScanRun(GetScanRunRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * GetScanRunRequest request = * GetScanRunRequest.newBuilder() @@ -920,8 +1016,11 @@ public final UnaryCallablegetScanRunCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ScanConfigName parent = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]"); * for (ScanRun element : webSecurityScannerClient.listScanRuns(parent).iterateAll()) { @@ -949,8 +1048,11 @@ public final ListScanRunsPagedResponse listScanRuns(ScanConfigName parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * String parent = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString(); * for (ScanRun element : webSecurityScannerClient.listScanRuns(parent).iterateAll()) { @@ -975,8 +1077,11 @@ public final ListScanRunsPagedResponse listScanRuns(String parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ListScanRunsRequest request = * ListScanRunsRequest.newBuilder() @@ -1004,8 +1109,11 @@ public final ListScanRunsPagedResponse listScanRuns(ListScanRunsRequest request) *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ListScanRunsRequest request = * ListScanRunsRequest.newBuilder() @@ -1034,8 +1142,11 @@ public final ListScanRunsPagedResponse listScanRuns(ListScanRunsRequest request) *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ListScanRunsRequest request = * ListScanRunsRequest.newBuilder() @@ -1070,8 +1181,11 @@ public final UnaryCallablelistScanRu * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ScanRunName name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); * ScanRun response = webSecurityScannerClient.stopScanRun(name); @@ -1095,8 +1209,11 @@ public final ScanRun stopScanRun(ScanRunName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * String name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString(); * ScanRun response = webSecurityScannerClient.stopScanRun(name); @@ -1119,8 +1236,11 @@ public final ScanRun stopScanRun(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * StopScanRunRequest request = * StopScanRunRequest.newBuilder() @@ -1144,8 +1264,11 @@ public final ScanRun stopScanRun(StopScanRunRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * StopScanRunRequest request = * StopScanRunRequest.newBuilder() @@ -1169,8 +1292,11 @@ public final UnaryCallablestopScanRunCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); * for (CrawledUrl element : webSecurityScannerClient.listCrawledUrls(parent).iterateAll()) { @@ -1198,8 +1324,11 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ScanRunName parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * String parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString(); * for (CrawledUrl element : webSecurityScannerClient.listCrawledUrls(parent).iterateAll()) { @@ -1224,8 +1353,11 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(String parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ListCrawledUrlsRequest request = * ListCrawledUrlsRequest.newBuilder() @@ -1253,8 +1385,11 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ListCrawledUrlsRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ListCrawledUrlsRequest request = * ListCrawledUrlsRequest.newBuilder() @@ -1283,8 +1418,11 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ListCrawledUrlsRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ListCrawledUrlsRequest request = * ListCrawledUrlsRequest.newBuilder() @@ -1320,8 +1458,11 @@ public final ListCrawledUrlsPagedResponse listCrawledUrls(ListCrawledUrlsRequest *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * FindingName name = FindingName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]", "[FINDING]"); * Finding response = webSecurityScannerClient.getFinding(name); @@ -1346,8 +1487,11 @@ public final Finding getFinding(FindingName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * String name = * FindingName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]", "[FINDING]").toString(); @@ -1372,8 +1516,11 @@ public final Finding getFinding(String name) { ** *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * GetFindingRequest request = * GetFindingRequest.newBuilder() @@ -1399,8 +1546,11 @@ public final Finding getFinding(GetFindingRequest request) { ** *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * GetFindingRequest request = * GetFindingRequest.newBuilder() @@ -1425,8 +1575,11 @@ public final UnaryCallable* *getFindingCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); * String filter = "filter-1274492040"; @@ -1459,8 +1612,11 @@ public final ListFindingsPagedResponse listFindings(ScanRunName parent, String f ** *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * String parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString(); * String filter = "filter-1274492040"; @@ -1490,8 +1646,11 @@ public final ListFindingsPagedResponse listFindings(String parent, String filter ** *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ListFindingsRequest request = * ListFindingsRequest.newBuilder() @@ -1520,8 +1679,11 @@ public final ListFindingsPagedResponse listFindings(ListFindingsRequest request) ** *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ListFindingsRequest request = * ListFindingsRequest.newBuilder() @@ -1551,8 +1713,11 @@ public final ListFindingsPagedResponse listFindings(ListFindingsRequest request) ** *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ListFindingsRequest request = * ListFindingsRequest.newBuilder() @@ -1588,8 +1753,11 @@ public final UnaryCallable* *listFindin * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); * ListFindingTypeStatsResponse response = webSecurityScannerClient.listFindingTypeStats(parent); @@ -1615,8 +1783,11 @@ public final ListFindingTypeStatsResponse listFindingTypeStats(ScanRunName paren ** *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * String parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString(); * ListFindingTypeStatsResponse response = webSecurityScannerClient.listFindingTypeStats(parent); @@ -1640,8 +1811,11 @@ public final ListFindingTypeStatsResponse listFindingTypeStats(String parent) { ** *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ListFindingTypeStatsRequest request = * ListFindingTypeStatsRequest.newBuilder() @@ -1667,8 +1841,11 @@ public final ListFindingTypeStatsResponse listFindingTypeStats( ** *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ListFindingTypeStatsRequest request = * ListFindingTypeStatsRequest.newBuilder() diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerSettings.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerSettings.java index b218cd5b8cba..ea96d01385cd 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerSettings.java +++ b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerSettings.java @@ -58,8 +58,11 @@ ** *For example, to set the total timeout of createScanConfig to 30 seconds: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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.Builder webSecurityScannerSettingsBuilder = * WebSecurityScannerSettings.newBuilder(); * webSecurityScannerSettingsBuilder diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/package-info.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/package-info.java index 7e6dacc131d0..7056a945b417 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/package-info.java +++ b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/package-info.java @@ -26,8 +26,11 @@ ** *Sample for WebSecurityScannerClient: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * ScanConfig scanConfig = ScanConfig.newBuilder().build(); diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerStub.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerStub.java index b0ce37aae98c..5440d1d09755 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerStub.java +++ b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerStub.java @@ -103,7 +103,7 @@ public class HttpJsonWebSecurityScannerStub extends WebSecurityScannerStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("scanConfig", request.getScanConfig())) + .toBody("scanConfig", request.getScanConfig(), false)) .build()) .setResponseParser( ProtoMessageResponseParser.* *newBuilder() @@ -246,7 +246,7 @@ public class HttpJsonWebSecurityScannerStub extends WebSecurityScannerStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("scanConfig", request.getScanConfig())) + .toBody("scanConfig", request.getScanConfig(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -283,7 +283,7 @@ public class HttpJsonWebSecurityScannerStub extends WebSecurityScannerStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -388,7 +388,7 @@ public class HttpJsonWebSecurityScannerStub extends WebSecurityScannerStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java index 52c5e9b6c794..79372d8d407b 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java +++ b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java @@ -97,8 +97,11 @@ * For example, to set the total timeout of createScanConfig to 30 seconds: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - 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 * WebSecurityScannerStubSettings.Builder webSecurityScannerSettingsBuilder = * WebSecurityScannerStubSettings.newBuilder(); * webSecurityScannerSettingsBuilder diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientHttpJsonTest.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientHttpJsonTest.java index 88fea02227ca..d678fbff1797 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientHttpJsonTest.java +++ b/java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientHttpJsonTest.java @@ -95,6 +95,7 @@ public void createScanConfigTest() throws Exception { .setSchedule(ScanConfig.Schedule.newBuilder().build()) .setManagedScan(true) .setStaticIpScan(true) + .setIgnoreHttpStatusErrors(true) .build(); mockService.addResponse(expectedResponse); @@ -201,6 +202,7 @@ public void getScanConfigTest() throws Exception { .setSchedule(ScanConfig.Schedule.newBuilder().build()) .setManagedScan(true) .setStaticIpScan(true) + .setIgnoreHttpStatusErrors(true) .build(); mockService.addResponse(expectedResponse); @@ -319,6 +321,7 @@ public void updateScanConfigTest() throws Exception { .setSchedule(ScanConfig.Schedule.newBuilder().build()) .setManagedScan(true) .setStaticIpScan(true) + .setIgnoreHttpStatusErrors(true) .build(); mockService.addResponse(expectedResponse); @@ -335,6 +338,7 @@ public void updateScanConfigTest() throws Exception { .setSchedule(ScanConfig.Schedule.newBuilder().build()) .setManagedScan(true) .setStaticIpScan(true) + .setIgnoreHttpStatusErrors(true) .build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); @@ -378,6 +382,7 @@ public void updateScanConfigExceptionTest() throws Exception { .setSchedule(ScanConfig.Schedule.newBuilder().build()) .setManagedScan(true) .setStaticIpScan(true) + .setIgnoreHttpStatusErrors(true) .build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); @@ -702,6 +707,7 @@ public void getFindingTest() throws Exception { .setVulnerableHeaders(VulnerableHeaders.newBuilder().build()) .setVulnerableParameters(VulnerableParameters.newBuilder().build()) .setXss(Xss.newBuilder().build()) + .setXxe(Xxe.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientTest.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientTest.java index e70a9522cdf9..c97774ef7ee5 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientTest.java +++ b/java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientTest.java @@ -98,6 +98,7 @@ public void createScanConfigTest() throws Exception { .setSchedule(ScanConfig.Schedule.newBuilder().build()) .setManagedScan(true) .setStaticIpScan(true) + .setIgnoreHttpStatusErrors(true) .build(); mockWebSecurityScanner.addResponse(expectedResponse); @@ -189,6 +190,7 @@ public void getScanConfigTest() throws Exception { .setSchedule(ScanConfig.Schedule.newBuilder().build()) .setManagedScan(true) .setStaticIpScan(true) + .setIgnoreHttpStatusErrors(true) .build(); mockWebSecurityScanner.addResponse(expectedResponse); @@ -292,6 +294,7 @@ public void updateScanConfigTest() throws Exception { .setSchedule(ScanConfig.Schedule.newBuilder().build()) .setManagedScan(true) .setStaticIpScan(true) + .setIgnoreHttpStatusErrors(true) .build(); mockWebSecurityScanner.addResponse(expectedResponse); @@ -604,6 +607,7 @@ public void getFindingTest() throws Exception { .setVulnerableHeaders(VulnerableHeaders.newBuilder().build()) .setVulnerableParameters(VulnerableParameters.newBuilder().build()) .setXss(Xss.newBuilder().build()) + .setXxe(Xxe.newBuilder().build()) .build(); mockWebSecurityScanner.addResponse(expectedResponse); diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Finding.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Finding.java index 958b1bc523d2..3895572d1933 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Finding.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Finding.java @@ -256,6 +256,22 @@ private Finding( int rawValue = input.readEnum(); severity_ = rawValue; + break; + } + case 146: + { + com.google.cloud.websecurityscanner.v1.Xxe.Builder subBuilder = null; + if (xxe_ != null) { + subBuilder = xxe_.toBuilder(); + } + xxe_ = + input.readMessage( + com.google.cloud.websecurityscanner.v1.Xxe.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(xxe_); + xxe_ = subBuilder.buildPartial(); + } + break; } default: @@ -1345,6 +1361,58 @@ public com.google.cloud.websecurityscanner.v1.XssOrBuilder getXssOrBuilder() { return getXss(); } + public static final int XXE_FIELD_NUMBER = 18; + private com.google.cloud.websecurityscanner.v1.Xxe xxe_; + /** + * + * + ** *+ * Output only. An addon containing information reported for an XXE, if any. + *+ * + *+ * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return Whether the xxe field is set. + */ + @java.lang.Override + public boolean hasXxe() { + return xxe_ != null; + } + /** + * + * + *+ * Output only. An addon containing information reported for an XXE, if any. + *+ * + *+ * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return The xxe. + */ + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.Xxe getXxe() { + return xxe_ == null ? com.google.cloud.websecurityscanner.v1.Xxe.getDefaultInstance() : xxe_; + } + /** + * + * + *+ * Output only. An addon containing information reported for an XXE, if any. + *+ * + *+ * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ */ + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.XxeOrBuilder getXxeOrBuilder() { + return getXxe(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1412,6 +1480,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(17, severity_); } + if (xxe_ != null) { + output.writeMessage(18, getXxe()); + } unknownFields.writeTo(output); } @@ -1475,6 +1546,9 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(17, severity_); } + if (xxe_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getXxe()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1526,6 +1600,10 @@ public boolean equals(final java.lang.Object obj) { if (hasXss()) { if (!getXss().equals(other.getXss())) return false; } + if (hasXxe() != other.hasXxe()) return false; + if (hasXxe()) { + if (!getXxe().equals(other.getXxe())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1583,6 +1661,10 @@ public int hashCode() { hash = (37 * hash) + XSS_FIELD_NUMBER; hash = (53 * hash) + getXss().hashCode(); } + if (hasXxe()) { + hash = (37 * hash) + XXE_FIELD_NUMBER; + hash = (53 * hash) + getXxe().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1787,6 +1869,12 @@ public Builder clear() { xss_ = null; xssBuilder_ = null; } + if (xxeBuilder_ == null) { + xxe_ = null; + } else { + xxe_ = null; + xxeBuilder_ = null; + } return this; } @@ -1855,6 +1943,11 @@ public com.google.cloud.websecurityscanner.v1.Finding buildPartial() { } else { result.xss_ = xssBuilder_.build(); } + if (xxeBuilder_ == null) { + result.xxe_ = xxe_; + } else { + result.xxe_ = xxeBuilder_.build(); + } onBuilt(); return result; } @@ -1965,6 +2058,9 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.Finding other) { if (other.hasXss()) { mergeXss(other.getXss()); } + if (other.hasXxe()) { + mergeXxe(other.getXxe()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -4371,6 +4467,209 @@ public com.google.cloud.websecurityscanner.v1.XssOrBuilder getXssOrBuilder() { return xssBuilder_; } + private com.google.cloud.websecurityscanner.v1.Xxe xxe_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.Xxe, + com.google.cloud.websecurityscanner.v1.Xxe.Builder, + com.google.cloud.websecurityscanner.v1.XxeOrBuilder> + xxeBuilder_; + /** + * + * + *+ * Output only. An addon containing information reported for an XXE, if any. + *+ * + *+ * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return Whether the xxe field is set. + */ + public boolean hasXxe() { + return xxeBuilder_ != null || xxe_ != null; + } + /** + * + * + *+ * Output only. An addon containing information reported for an XXE, if any. + *+ * + *+ * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return The xxe. + */ + public com.google.cloud.websecurityscanner.v1.Xxe getXxe() { + if (xxeBuilder_ == null) { + return xxe_ == null + ? com.google.cloud.websecurityscanner.v1.Xxe.getDefaultInstance() + : xxe_; + } else { + return xxeBuilder_.getMessage(); + } + } + /** + * + * + *+ * Output only. An addon containing information reported for an XXE, if any. + *+ * + *+ * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ */ + public Builder setXxe(com.google.cloud.websecurityscanner.v1.Xxe value) { + if (xxeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + xxe_ = value; + onChanged(); + } else { + xxeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *+ * Output only. An addon containing information reported for an XXE, if any. + *+ * + *+ * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ */ + public Builder setXxe(com.google.cloud.websecurityscanner.v1.Xxe.Builder builderForValue) { + if (xxeBuilder_ == null) { + xxe_ = builderForValue.build(); + onChanged(); + } else { + xxeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *+ * Output only. An addon containing information reported for an XXE, if any. + *+ * + *+ * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ */ + public Builder mergeXxe(com.google.cloud.websecurityscanner.v1.Xxe value) { + if (xxeBuilder_ == null) { + if (xxe_ != null) { + xxe_ = + com.google.cloud.websecurityscanner.v1.Xxe.newBuilder(xxe_) + .mergeFrom(value) + .buildPartial(); + } else { + xxe_ = value; + } + onChanged(); + } else { + xxeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *+ * Output only. An addon containing information reported for an XXE, if any. + *+ * + *+ * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ */ + public Builder clearXxe() { + if (xxeBuilder_ == null) { + xxe_ = null; + onChanged(); + } else { + xxe_ = null; + xxeBuilder_ = null; + } + + return this; + } + /** + * + * + *+ * Output only. An addon containing information reported for an XXE, if any. + *+ * + *+ * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ */ + public com.google.cloud.websecurityscanner.v1.Xxe.Builder getXxeBuilder() { + + onChanged(); + return getXxeFieldBuilder().getBuilder(); + } + /** + * + * + *+ * Output only. An addon containing information reported for an XXE, if any. + *+ * + *+ * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ */ + public com.google.cloud.websecurityscanner.v1.XxeOrBuilder getXxeOrBuilder() { + if (xxeBuilder_ != null) { + return xxeBuilder_.getMessageOrBuilder(); + } else { + return xxe_ == null + ? com.google.cloud.websecurityscanner.v1.Xxe.getDefaultInstance() + : xxe_; + } + } + /** + * + * + *+ * Output only. An addon containing information reported for an XXE, if any. + *+ * + *+ * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.Xxe, + com.google.cloud.websecurityscanner.v1.Xxe.Builder, + com.google.cloud.websecurityscanner.v1.XxeOrBuilder> + getXxeFieldBuilder() { + if (xxeBuilder_ == null) { + xxeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.Xxe, + com.google.cloud.websecurityscanner.v1.Xxe.Builder, + com.google.cloud.websecurityscanner.v1.XxeOrBuilder>( + getXxe(), getParentForChildren(), isClean()); + xxe_ = null; + } + return xxeBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingAddonProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingAddonProto.java index cd63245f7753..e942856644c3 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingAddonProto.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingAddonProto.java @@ -55,6 +55,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_websecurityscanner_v1_Xss_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_websecurityscanner_v1_Xss_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_Xxe_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_Xxe_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -89,14 +93,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "SSAGE\020\007\022\022\n\016GET_PARAMETERS\020\010\022\020\n\014URL_FRAGM" + "ENT\020\t\022\020\n\014HTML_COMMENT\020\n\022\023\n\017POST_PARAMETE" + "RS\020\013\022\014\n\010PROTOCOL\020\014\022\016\n\nSTORED_XSS\020\r\022\017\n\013SA" - + "ME_ORIGIN\020\016\022\031\n\025USER_CONTROLLABLE_URL\020\017B\205" - + "\002\n&com.google.cloud.websecurityscanner.v" - + "1B\021FindingAddonProtoP\001ZTgoogle.golang.or" - + "g/genproto/googleapis/cloud/websecuritys" - + "canner/v1;websecurityscanner\252\002\"Google.Cl" - + "oud.WebSecurityScanner.V1\312\002\"Google\\Cloud" - + "\\WebSecurityScanner\\V1\352\002%Google::Cloud::" - + "WebSecurityScanner::V1b\006proto3" + + "ME_ORIGIN\020\016\022\031\n\025USER_CONTROLLABLE_URL\020\017\"\251" + + "\001\n\003Xxe\022\025\n\rpayload_value\030\001 \001(\t\022J\n\020payload" + + "_location\030\002 \001(\01620.google.cloud.websecuri" + + "tyscanner.v1.Xxe.Location\"?\n\010Location\022\030\n" + + "\024LOCATION_UNSPECIFIED\020\000\022\031\n\025COMPLETE_REQU" + + "EST_BODY\020\001B\205\002\n&com.google.cloud.websecur" + + "ityscanner.v1B\021FindingAddonProtoP\001ZTgoog" + + "le.golang.org/genproto/googleapis/cloud/" + + "websecurityscanner/v1;websecurityscanner" + + "\252\002\"Google.Cloud.WebSecurityScanner.V1\312\002\"" + + "Google\\Cloud\\WebSecurityScanner\\V1\352\002%Goo" + + "gle::Cloud::WebSecurityScanner::V1b\006prot" + + "o3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -159,6 +168,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "StackTraces", "ErrorMessage", "AttackVector", "StoredXssSeedingUrl", }); + internal_static_google_cloud_websecurityscanner_v1_Xxe_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_websecurityscanner_v1_Xxe_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_Xxe_descriptor, + new java.lang.String[] { + "PayloadValue", "PayloadLocation", + }); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingOrBuilder.java index 338bf2e814ac..74d9762b6c22 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingOrBuilder.java @@ -542,4 +542,45 @@ public interface FindingOrBuilder *.google.cloud.websecurityscanner.v1.Xss xss = 14;
*/ com.google.cloud.websecurityscanner.v1.XssOrBuilder getXssOrBuilder(); + + /** + * + * + *+ * Output only. An addon containing information reported for an XXE, if any. + *+ * + *+ * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return Whether the xxe field is set. + */ + boolean hasXxe(); + /** + * + * + *+ * Output only. An addon containing information reported for an XXE, if any. + *+ * + *+ * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return The xxe. + */ + com.google.cloud.websecurityscanner.v1.Xxe getXxe(); + /** + * + * + *+ * Output only. An addon containing information reported for an XXE, if any. + *+ * + *+ * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ */ + com.google.cloud.websecurityscanner.v1.XxeOrBuilder getXxeOrBuilder(); } diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingProto.java index a94ab1ebcdfb..3a8e619aa553 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingProto.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingProto.java @@ -45,7 +45,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ner.v1\032\037google/api/field_behavior.proto\032" + "\031google/api/resource.proto\0326google/cloud" + "/websecurityscanner/v1/finding_addon.pro" - + "to\"\261\007\n\007Finding\022\014\n\004name\030\001 \001(\t\022\024\n\014finding_" + + "to\"\354\007\n\007Finding\022\014\n\004name\030\001 \001(\t\022\024\n\014finding_" + "type\030\002 \001(\t\022K\n\010severity\030\021 \001(\01624.google.cl" + "oud.websecurityscanner.v1.Finding.Severi" + "tyB\003\340A\003\022\023\n\013http_method\030\003 \001(\t\022\022\n\nfuzzed_u" @@ -63,19 +63,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ble_parameters\030\r \001(\01328.google.cloud.webs" + "ecurityscanner.v1.VulnerableParameters\0224" + "\n\003xss\030\016 \001(\0132\'.google.cloud.websecuritysc" - + "anner.v1.Xss\"Q\n\010Severity\022\030\n\024SEVERITY_UNS" - + "PECIFIED\020\000\022\014\n\010CRITICAL\020\001\022\010\n\004HIGH\020\002\022\n\n\006ME" - + "DIUM\020\003\022\007\n\003LOW\020\004:\204\001\352A\200\001\n)websecurityscann" - + "er.googleapis.com/Finding\022Sprojects/{pro" - + "ject}/scanConfigs/{scan_config}/scanRuns" - + "/{scan_run}/findings/{finding}B\200\002\n&com.g" - + "oogle.cloud.websecurityscanner.v1B\014Findi" - + "ngProtoP\001ZTgoogle.golang.org/genproto/go" - + "ogleapis/cloud/websecurityscanner/v1;web" - + "securityscanner\252\002\"Google.Cloud.WebSecuri" - + "tyScanner.V1\312\002\"Google\\Cloud\\WebSecurityS" - + "canner\\V1\352\002%Google::Cloud::WebSecuritySc" - + "anner::V1b\006proto3" + + "anner.v1.Xss\0229\n\003xxe\030\022 \001(\0132\'.google.cloud" + + ".websecurityscanner.v1.XxeB\003\340A\003\"Q\n\010Sever" + + "ity\022\030\n\024SEVERITY_UNSPECIFIED\020\000\022\014\n\010CRITICA" + + "L\020\001\022\010\n\004HIGH\020\002\022\n\n\006MEDIUM\020\003\022\007\n\003LOW\020\004:\204\001\352A\200" + + "\001\n)websecurityscanner.googleapis.com/Fin" + + "ding\022Sprojects/{project}/scanConfigs/{sc" + + "an_config}/scanRuns/{scan_run}/findings/" + + "{finding}B\200\002\n&com.google.cloud.websecuri" + + "tyscanner.v1B\014FindingProtoP\001ZTgoogle.gol" + + "ang.org/genproto/googleapis/cloud/websec" + + "urityscanner/v1;websecurityscanner\252\002\"Goo" + + "gle.Cloud.WebSecurityScanner.V1\312\002\"Google" + + "\\Cloud\\WebSecurityScanner\\V1\352\002%Google::C" + + "loud::WebSecurityScanner::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -108,6 +109,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "VulnerableHeaders", "VulnerableParameters", "Xss", + "Xxe", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfig.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfig.java index a7d9a82a6fc0..272736693db4 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfig.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfig.java @@ -182,6 +182,11 @@ private ScanConfig( staticIpScan_ = input.readBool(); break; } + case 120: + { + ignoreHttpStatusErrors_ = input.readBool(); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -743,11 +748,14 @@ public interface AuthenticationOrBuilder *- * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; *
* + * @deprecated google.cloud.websecurityscanner.v1.ScanConfig.Authentication.google_account is + * deprecated. See google/cloud/websecurityscanner/v1/scan_config.proto;l=80 * @return Whether the googleAccount field is set. */ + @java.lang.Deprecated boolean hasGoogleAccount(); /** * @@ -757,11 +765,14 @@ public interface AuthenticationOrBuilder *- * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; *
* + * @deprecated google.cloud.websecurityscanner.v1.ScanConfig.Authentication.google_account is + * deprecated. See google/cloud/websecurityscanner/v1/scan_config.proto;l=80 * @return The googleAccount. */ + @java.lang.Deprecated com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount getGoogleAccount(); /** @@ -772,9 +783,10 @@ public interface AuthenticationOrBuilder *- * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; *
*/ + @java.lang.Deprecated com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccountOrBuilder getGoogleAccountOrBuilder(); @@ -1034,6 +1046,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder.class); } + @java.lang.Deprecated public interface GoogleAccountOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) @@ -1101,6 +1114,7 @@ public interface GoogleAccountOrBuilder * Protobuf type {@code * google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount} */ + @java.lang.Deprecated public static final class GoogleAccount extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) @@ -4835,6 +4849,7 @@ public enum AuthenticationCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { + @java.lang.Deprecated GOOGLE_ACCOUNT(1), CUSTOM_ACCOUNT(2), IAP_CREDENTIAL(4), @@ -4887,12 +4902,15 @@ public AuthenticationCase getAuthenticationCase() { *- * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; *
* + * @deprecated google.cloud.websecurityscanner.v1.ScanConfig.Authentication.google_account is + * deprecated. See google/cloud/websecurityscanner/v1/scan_config.proto;l=80 * @return Whether the googleAccount field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasGoogleAccount() { return authenticationCase_ == 1; } @@ -4904,12 +4922,15 @@ public boolean hasGoogleAccount() { *- * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; *
* + * @deprecated google.cloud.websecurityscanner.v1.ScanConfig.Authentication.google_account is + * deprecated. See google/cloud/websecurityscanner/v1/scan_config.proto;l=80 * @return The googleAccount. */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount getGoogleAccount() { if (authenticationCase_ == 1) { @@ -4927,10 +4948,11 @@ public boolean hasGoogleAccount() { *- * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; *
*/ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccountOrBuilder getGoogleAccountOrBuilder() { if (authenticationCase_ == 1) { @@ -5525,12 +5547,15 @@ public Builder clearAuthentication() { *- * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; *
* + * @deprecated google.cloud.websecurityscanner.v1.ScanConfig.Authentication.google_account is + * deprecated. See google/cloud/websecurityscanner/v1/scan_config.proto;l=80 * @return Whether the googleAccount field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasGoogleAccount() { return authenticationCase_ == 1; } @@ -5542,12 +5567,15 @@ public boolean hasGoogleAccount() { *- * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; *
* + * @deprecated google.cloud.websecurityscanner.v1.ScanConfig.Authentication.google_account is + * deprecated. See google/cloud/websecurityscanner/v1/scan_config.proto;l=80 * @return The googleAccount. */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount getGoogleAccount() { if (googleAccountBuilder_ == null) { @@ -5573,9 +5601,10 @@ public boolean hasGoogleAccount() { *- * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; *
*/ + @java.lang.Deprecated public Builder setGoogleAccount( com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount value) { if (googleAccountBuilder_ == null) { @@ -5598,9 +5627,10 @@ public Builder setGoogleAccount( *- * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; *
*/ + @java.lang.Deprecated public Builder setGoogleAccount( com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.Builder builderForValue) { @@ -5621,9 +5651,10 @@ public Builder setGoogleAccount( *- * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; *
*/ + @java.lang.Deprecated public Builder mergeGoogleAccount( com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount value) { if (googleAccountBuilder_ == null) { @@ -5661,9 +5692,10 @@ public Builder mergeGoogleAccount( *- * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; *
*/ + @java.lang.Deprecated public Builder clearGoogleAccount() { if (googleAccountBuilder_ == null) { if (authenticationCase_ == 1) { @@ -5688,9 +5720,10 @@ public Builder clearGoogleAccount() { *- * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; *
*/ + @java.lang.Deprecated public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.Builder getGoogleAccountBuilder() { return getGoogleAccountFieldBuilder().getBuilder(); @@ -5703,10 +5736,11 @@ public Builder clearGoogleAccount() { *- * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; *
*/ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccountOrBuilder getGoogleAccountOrBuilder() { if ((authenticationCase_ == 1) && (googleAccountBuilder_ != null)) { @@ -5728,7 +5762,7 @@ public Builder clearGoogleAccount() { *- * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; *
*/ private com.google.protobuf.SingleFieldBuilderV3< @@ -7747,6 +7781,24 @@ public boolean getStaticIpScan() { return staticIpScan_; } + public static final int IGNORE_HTTP_STATUS_ERRORS_FIELD_NUMBER = 15; + private boolean ignoreHttpStatusErrors_; + /** + * + * + *+ * Whether to keep scanning even if most requests return HTTP error codes. + *+ * + *bool ignore_http_status_errors = 15;
+ * + * @return The ignoreHttpStatusErrors. + */ + @java.lang.Override + public boolean getIgnoreHttpStatusErrors() { + return ignoreHttpStatusErrors_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -7804,6 +7856,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (staticIpScan_ != false) { output.writeBool(14, staticIpScan_); } + if (ignoreHttpStatusErrors_ != false) { + output.writeBool(15, ignoreHttpStatusErrors_); + } unknownFields.writeTo(output); } @@ -7867,6 +7922,9 @@ public int getSerializedSize() { if (staticIpScan_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, staticIpScan_); } + if (ignoreHttpStatusErrors_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, ignoreHttpStatusErrors_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -7901,6 +7959,7 @@ public boolean equals(final java.lang.Object obj) { if (riskLevel_ != other.riskLevel_) return false; if (getManagedScan() != other.getManagedScan()) return false; if (getStaticIpScan() != other.getStaticIpScan()) return false; + if (getIgnoreHttpStatusErrors() != other.getIgnoreHttpStatusErrors()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -7944,6 +8003,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getManagedScan()); hash = (37 * hash) + STATIC_IP_SCAN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStaticIpScan()); + hash = (37 * hash) + IGNORE_HTTP_STATUS_ERRORS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreHttpStatusErrors()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -8121,6 +8182,8 @@ public Builder clear() { staticIpScan_ = false; + ignoreHttpStatusErrors_ = false; + return this; } @@ -8177,6 +8240,7 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig buildPartial() { result.riskLevel_ = riskLevel_; result.managedScan_ = managedScan_; result.staticIpScan_ = staticIpScan_; + result.ignoreHttpStatusErrors_ = ignoreHttpStatusErrors_; onBuilt(); return result; } @@ -8279,6 +8343,9 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ScanConfig other if (other.getStaticIpScan() != false) { setStaticIpScan(other.getStaticIpScan()); } + if (other.getIgnoreHttpStatusErrors() != false) { + setIgnoreHttpStatusErrors(other.getIgnoreHttpStatusErrors()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -9743,6 +9810,58 @@ public Builder clearStaticIpScan() { return this; } + private boolean ignoreHttpStatusErrors_; + /** + * + * + *+ * Whether to keep scanning even if most requests return HTTP error codes. + *+ * + *bool ignore_http_status_errors = 15;
+ * + * @return The ignoreHttpStatusErrors. + */ + @java.lang.Override + public boolean getIgnoreHttpStatusErrors() { + return ignoreHttpStatusErrors_; + } + /** + * + * + *+ * Whether to keep scanning even if most requests return HTTP error codes. + *+ * + *bool ignore_http_status_errors = 15;
+ * + * @param value The ignoreHttpStatusErrors to set. + * @return This builder for chaining. + */ + public Builder setIgnoreHttpStatusErrors(boolean value) { + + ignoreHttpStatusErrors_ = value; + onChanged(); + return this; + } + /** + * + * + *+ * Whether to keep scanning even if most requests return HTTP error codes. + *+ * + *bool ignore_http_status_errors = 15;
+ * + * @return This builder for chaining. + */ + public Builder clearIgnoreHttpStatusErrors() { + + ignoreHttpStatusErrors_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigOrBuilder.java index 32718b4f9334..f088843794b4 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigOrBuilder.java @@ -382,4 +382,17 @@ public interface ScanConfigOrBuilder * @return The staticIpScan. */ boolean getStaticIpScan(); + + /** + * + * + *+ * Whether to keep scanning even if most requests return HTTP error codes. + *+ * + *bool ignore_http_status_errors = 15;
+ * + * @return The ignoreHttpStatusErrors. + */ + boolean getIgnoreHttpStatusErrors(); } diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigProto.java index 8849902c2a33..d68805f2fd0e 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigProto.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigProto.java @@ -67,7 +67,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n4google/cloud/websecurityscanner/v1/sca" + "n_config.proto\022\"google.cloud.websecurity" + "scanner.v1\032\037google/api/field_behavior.pr" - + "oto\032\037google/protobuf/timestamp.proto\"\231\r\n" + + "oto\032\037google/protobuf/timestamp.proto\"\304\r\n" + "\nScanConfig\022\014\n\004name\030\001 \001(\t\022\024\n\014display_nam" + "e\030\002 \001(\t\022\017\n\007max_qps\030\003 \001(\005\022\025\n\rstarting_url" + "s\030\004 \003(\t\022U\n\016authentication\030\005 \001(\0132=.google" @@ -83,40 +83,42 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "risk_level\030\014 \001(\01628.google.cloud.websecur" + "ityscanner.v1.ScanConfig.RiskLevel\022\024\n\014ma" + "naged_scan\030\r \001(\010\022\026\n\016static_ip_scan\030\016 \001(\010" - + "\032\317\005\n\016Authentication\022e\n\016google_account\030\001 " - + "\001(\0132K.google.cloud.websecurityscanner.v1" - + ".ScanConfig.Authentication.GoogleAccount" - + "H\000\022e\n\016custom_account\030\002 \001(\0132K.google.clou" - + "d.websecurityscanner.v1.ScanConfig.Authe" - + "ntication.CustomAccountH\000\022e\n\016iap_credent" - + "ial\030\004 \001(\0132K.google.cloud.websecurityscan" - + "ner.v1.ScanConfig.Authentication.IapCred" - + "entialH\000\0323\n\rGoogleAccount\022\020\n\010username\030\001 " - + "\001(\t\022\020\n\010password\030\002 \001(\t\032F\n\rCustomAccount\022\020" - + "\n\010username\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\022\021\n\tlo" - + "gin_url\030\003 \001(\t\032\370\001\n\rIapCredential\022\216\001\n\035iap_" - + "test_service_account_info\030\001 \001(\0132e.google" - + ".cloud.websecurityscanner.v1.ScanConfig." - + "Authentication.IapCredential.IapTestServ" - + "iceAccountInfoH\000\032C\n\031IapTestServiceAccoun" - + "tInfo\022&\n\031target_audience_client_id\030\001 \001(\t" - + "B\003\340A\002B\021\n\017iap_credentialsB\020\n\016authenticati" - + "on\032]\n\010Schedule\0221\n\rschedule_time\030\001 \001(\0132\032." - + "google.protobuf.Timestamp\022\036\n\026interval_du" - + "ration_days\030\002 \001(\005\"`\n\tUserAgent\022\032\n\026USER_A" - + "GENT_UNSPECIFIED\020\000\022\020\n\014CHROME_LINUX\020\001\022\022\n\016" - + "CHROME_ANDROID\020\002\022\021\n\rSAFARI_IPHONE\020\003\"<\n\tR" - + "iskLevel\022\032\n\026RISK_LEVEL_UNSPECIFIED\020\000\022\n\n\006" - + "NORMAL\020\001\022\007\n\003LOW\020\002\"m\n\035ExportToSecurityCom" - + "mandCenter\0221\n-EXPORT_TO_SECURITY_COMMAND" - + "_CENTER_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001\022\014\n\010DI" - + "SABLED\020\002B\203\002\n&com.google.cloud.websecurit" - + "yscanner.v1B\017ScanConfigProtoP\001ZTgoogle.g" - + "olang.org/genproto/googleapis/cloud/webs" - + "ecurityscanner/v1;websecurityscanner\252\002\"G" - + "oogle.Cloud.WebSecurityScanner.V1\312\002\"Goog" - + "le\\Cloud\\WebSecurityScanner\\V1\352\002%Google:" - + ":Cloud::WebSecurityScanner::V1b\006proto3" + + "\022!\n\031ignore_http_status_errors\030\017 \001(\010\032\327\005\n\016" + + "Authentication\022i\n\016google_account\030\001 \001(\0132K" + + ".google.cloud.websecurityscanner.v1.Scan" + + "Config.Authentication.GoogleAccountB\002\030\001H" + + "\000\022e\n\016custom_account\030\002 \001(\0132K.google.cloud" + + ".websecurityscanner.v1.ScanConfig.Authen" + + "tication.CustomAccountH\000\022e\n\016iap_credenti" + + "al\030\004 \001(\0132K.google.cloud.websecurityscann" + + "er.v1.ScanConfig.Authentication.IapCrede" + + "ntialH\000\0327\n\rGoogleAccount\022\020\n\010username\030\001 \001" + + "(\t\022\020\n\010password\030\002 \001(\t:\002\030\001\032F\n\rCustomAccoun" + + "t\022\020\n\010username\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\022\021\n" + + "\tlogin_url\030\003 \001(\t\032\370\001\n\rIapCredential\022\216\001\n\035i" + + "ap_test_service_account_info\030\001 \001(\0132e.goo" + + "gle.cloud.websecurityscanner.v1.ScanConf" + + "ig.Authentication.IapCredential.IapTestS" + + "erviceAccountInfoH\000\032C\n\031IapTestServiceAcc" + + "ountInfo\022&\n\031target_audience_client_id\030\001 " + + "\001(\tB\003\340A\002B\021\n\017iap_credentialsB\020\n\016authentic" + + "ation\032]\n\010Schedule\0221\n\rschedule_time\030\001 \001(\013" + + "2\032.google.protobuf.Timestamp\022\036\n\026interval" + + "_duration_days\030\002 \001(\005\"`\n\tUserAgent\022\032\n\026USE" + + "R_AGENT_UNSPECIFIED\020\000\022\020\n\014CHROME_LINUX\020\001\022" + + "\022\n\016CHROME_ANDROID\020\002\022\021\n\rSAFARI_IPHONE\020\003\"<" + + "\n\tRiskLevel\022\032\n\026RISK_LEVEL_UNSPECIFIED\020\000\022" + + "\n\n\006NORMAL\020\001\022\007\n\003LOW\020\002\"m\n\035ExportToSecurity" + + "CommandCenter\0221\n-EXPORT_TO_SECURITY_COMM" + + "AND_CENTER_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001\022\014\n" + + "\010DISABLED\020\002B\203\002\n&com.google.cloud.websecu" + + "rityscanner.v1B\017ScanConfigProtoP\001ZTgoogl" + + "e.golang.org/genproto/googleapis/cloud/w" + + "ebsecurityscanner/v1;websecurityscanner\252" + + "\002\"Google.Cloud.WebSecurityScanner.V1\312\002\"G" + + "oogle\\Cloud\\WebSecurityScanner\\V1\352\002%Goog" + + "le::Cloud::WebSecurityScanner::V1b\006proto" + + "3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -143,6 +145,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RiskLevel", "ManagedScan", "StaticIpScan", + "IgnoreHttpStatusErrors", }); internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor = internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTrace.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTrace.java index 9635019bedae..a84acd617d09 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTrace.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTrace.java @@ -142,7 +142,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { ** Output only. * Defines an error reason code. - * Next id: 7 + * Next id: 8 ** * Protobuf enum {@code google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code} diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTrace.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTrace.java index fd04b91e686b..1deb877a4f4d 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTrace.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTrace.java @@ -182,6 +182,16 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { *BLOCKED_BY_IAP = 4;
*/ BLOCKED_BY_IAP(4), + /** + * + * + *+ * Indicates that no seeds is found for a scan + *+ * + *NO_STARTING_URL_FOUND_FOR_MANAGED_SCAN = 5;
+ */ + NO_STARTING_URL_FOUND_FOR_MANAGED_SCAN(5), UNRECOGNIZED(-1), ; @@ -240,6 +250,16 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { *BLOCKED_BY_IAP = 4;
*/ public static final int BLOCKED_BY_IAP_VALUE = 4; + /** + * + * + *+ * Indicates that no seeds is found for a scan + *+ * + *NO_STARTING_URL_FOUND_FOR_MANAGED_SCAN = 5;
+ */ + public static final int NO_STARTING_URL_FOUND_FOR_MANAGED_SCAN_VALUE = 5; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -275,6 +295,8 @@ public static Code forNumber(int value) { return TOO_MANY_FUZZ_TASKS; case 4: return BLOCKED_BY_IAP; + case 5: + return NO_STARTING_URL_FOUND_FOR_MANAGED_SCAN; default: return null; } diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceProto.java index 76b7bee4d4e8..800c51ab8dff 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceProto.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceProto.java @@ -42,20 +42,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n?google/cloud/websecurityscanner/v1/sca" + "n_run_warning_trace.proto\022\"google.cloud." - + "websecurityscanner.v1\"\351\001\n\023ScanRunWarning" + + "websecurityscanner.v1\"\225\002\n\023ScanRunWarning" + "Trace\022J\n\004code\030\001 \001(\0162<.google.cloud.webse" + "curityscanner.v1.ScanRunWarningTrace.Cod" - + "e\"\205\001\n\004Code\022\024\n\020CODE_UNSPECIFIED\020\000\022\036\n\032INSU" + + "e\"\261\001\n\004Code\022\024\n\020CODE_UNSPECIFIED\020\000\022\036\n\032INSU" + "FFICIENT_CRAWL_RESULTS\020\001\022\032\n\026TOO_MANY_CRA" + "WL_RESULTS\020\002\022\027\n\023TOO_MANY_FUZZ_TASKS\020\003\022\022\n" - + "\016BLOCKED_BY_IAP\020\004B\214\002\n&com.google.cloud.w" - + "ebsecurityscanner.v1B\030ScanRunWarningTrac" - + "eProtoP\001ZTgoogle.golang.org/genproto/goo" - + "gleapis/cloud/websecurityscanner/v1;webs" - + "ecurityscanner\252\002\"Google.Cloud.WebSecurit" - + "yScanner.V1\312\002\"Google\\Cloud\\WebSecuritySc" - + "anner\\V1\352\002%Google::Cloud::WebSecuritySca" - + "nner::V1b\006proto3" + + "\016BLOCKED_BY_IAP\020\004\022*\n&NO_STARTING_URL_FOU" + + "ND_FOR_MANAGED_SCAN\020\005B\214\002\n&com.google.clo" + + "ud.websecurityscanner.v1B\030ScanRunWarning" + + "TraceProtoP\001ZTgoogle.golang.org/genproto" + + "/googleapis/cloud/websecurityscanner/v1;" + + "websecurityscanner\252\002\"Google.Cloud.WebSec" + + "urityScanner.V1\312\002\"Google\\Cloud\\WebSecuri" + + "tyScanner\\V1\352\002%Google::Cloud::WebSecurit" + + "yScanner::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerProto.java index 0b5500643084..2c501a3268e3 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerProto.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerProto.java @@ -111,16 +111,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n=google/cloud/websecurityscanner/v1/web" + "_security_scanner.proto\022\"google.cloud.we" + "bsecurityscanner.v1\032\034google/api/annotati" - + "ons.proto\0324google/cloud/websecurityscann" - + "er/v1/crawled_url.proto\0320google/cloud/we" - + "bsecurityscanner/v1/finding.proto\032;googl" - + "e/cloud/websecurityscanner/v1/finding_ty" - + "pe_stats.proto\0324google/cloud/websecurity" - + "scanner/v1/scan_config.proto\0321google/clo" - + "ud/websecurityscanner/v1/scan_run.proto\032" - + "\033google/protobuf/empty.proto\032 google/pro" - + "tobuf/field_mask.proto\032\027google/api/clien" - + "t.proto\"n\n\027CreateScanConfigRequest\022\016\n\006pa" + + "ons.proto\032\027google/api/client.proto\0324goog" + + "le/cloud/websecurityscanner/v1/crawled_u" + + "rl.proto\0320google/cloud/websecurityscanne" + + "r/v1/finding.proto\032;google/cloud/websecu" + + "rityscanner/v1/finding_type_stats.proto\032" + + "4google/cloud/websecurityscanner/v1/scan" + + "_config.proto\0321google/cloud/websecuritys" + + "canner/v1/scan_run.proto\032\033google/protobu" + + "f/empty.proto\032 google/protobuf/field_mas" + + "k.proto\"n\n\027CreateScanConfigRequest\022\016\n\006pa" + "rent\030\001 \001(\t\022C\n\013scan_config\030\002 \001(\0132..google" + ".cloud.websecurityscanner.v1.ScanConfig\"" + "\'\n\027DeleteScanConfigRequest\022\014\n\004name\030\001 \001(\t" @@ -233,6 +233,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), com.google.cloud.websecurityscanner.v1.CrawledUrlProto.getDescriptor(), com.google.cloud.websecurityscanner.v1.FindingProto.getDescriptor(), com.google.cloud.websecurityscanner.v1.FindingTypeStatsProto.getDescriptor(), @@ -240,7 +241,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.websecurityscanner.v1.ScanRunProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), }); internal_static_google_cloud_websecurityscanner_v1_CreateScanConfigRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -394,6 +394,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); com.google.cloud.websecurityscanner.v1.CrawledUrlProto.getDescriptor(); com.google.cloud.websecurityscanner.v1.FindingProto.getDescriptor(); com.google.cloud.websecurityscanner.v1.FindingTypeStatsProto.getDescriptor(); @@ -401,7 +402,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.websecurityscanner.v1.ScanRunProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Xxe.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Xxe.java new file mode 100644 index 000000000000..1db84081f2dd --- /dev/null +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Xxe.java @@ -0,0 +1,934 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1/finding_addon.proto + +package com.google.cloud.websecurityscanner.v1; + +/** + * + * + *+ * Information reported for an XXE. + *+ * + * Protobuf type {@code google.cloud.websecurityscanner.v1.Xxe} + */ +public final class Xxe extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.Xxe) + XxeOrBuilder { + private static final long serialVersionUID = 0L; + // Use Xxe.newBuilder() to construct. + private Xxe(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private Xxe() { + payloadValue_ = ""; + payloadLocation_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Xxe(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Xxe( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + payloadValue_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + payloadLocation_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1_Xxe_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1_Xxe_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.websecurityscanner.v1.Xxe.class, + com.google.cloud.websecurityscanner.v1.Xxe.Builder.class); + } + + /** + * + * + *+ * Locations within a request where XML was substituted. + *+ * + * Protobuf enum {@code google.cloud.websecurityscanner.v1.Xxe.Location} + */ + public enum Location implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *+ * Unknown Location. + *+ * + *LOCATION_UNSPECIFIED = 0;
+ */ + LOCATION_UNSPECIFIED(0), + /** + * + * + *+ * The XML payload replaced the complete request body. + *+ * + *COMPLETE_REQUEST_BODY = 1;
+ */ + COMPLETE_REQUEST_BODY(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *+ * Unknown Location. + *+ * + *LOCATION_UNSPECIFIED = 0;
+ */ + public static final int LOCATION_UNSPECIFIED_VALUE = 0; + /** + * + * + *+ * The XML payload replaced the complete request body. + *+ * + *COMPLETE_REQUEST_BODY = 1;
+ */ + public static final int COMPLETE_REQUEST_BODY_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Location valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Location forNumber(int value) { + switch (value) { + case 0: + return LOCATION_UNSPECIFIED; + case 1: + return COMPLETE_REQUEST_BODY; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMapinternalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap () { + public Location findValueByNumber(int number) { + return Location.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.Xxe.getDescriptor().getEnumTypes().get(0); + } + + private static final Location[] VALUES = values(); + + public static Location valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Location(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.websecurityscanner.v1.Xxe.Location) + } + + public static final int PAYLOAD_VALUE_FIELD_NUMBER = 1; + private volatile java.lang.Object payloadValue_; + /** + * + * + * + * The XML string that triggered the XXE vulnerability. Non-payload values + * might be redacted. + *+ * + *string payload_value = 1;
+ * + * @return The payloadValue. + */ + @java.lang.Override + public java.lang.String getPayloadValue() { + java.lang.Object ref = payloadValue_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + payloadValue_ = s; + return s; + } + } + /** + * + * + *+ * The XML string that triggered the XXE vulnerability. Non-payload values + * might be redacted. + *+ * + *string payload_value = 1;
+ * + * @return The bytes for payloadValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPayloadValueBytes() { + java.lang.Object ref = payloadValue_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + payloadValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAYLOAD_LOCATION_FIELD_NUMBER = 2; + private int payloadLocation_; + /** + * + * + *+ * Location within the request where the payload was placed. + *+ * + *.google.cloud.websecurityscanner.v1.Xxe.Location payload_location = 2;
+ * + * @return The enum numeric value on the wire for payloadLocation. + */ + @java.lang.Override + public int getPayloadLocationValue() { + return payloadLocation_; + } + /** + * + * + *+ * Location within the request where the payload was placed. + *+ * + *.google.cloud.websecurityscanner.v1.Xxe.Location payload_location = 2;
+ * + * @return The payloadLocation. + */ + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.Xxe.Location getPayloadLocation() { + @SuppressWarnings("deprecation") + com.google.cloud.websecurityscanner.v1.Xxe.Location result = + com.google.cloud.websecurityscanner.v1.Xxe.Location.valueOf(payloadLocation_); + return result == null + ? com.google.cloud.websecurityscanner.v1.Xxe.Location.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(payloadValue_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, payloadValue_); + } + if (payloadLocation_ + != com.google.cloud.websecurityscanner.v1.Xxe.Location.LOCATION_UNSPECIFIED.getNumber()) { + output.writeEnum(2, payloadLocation_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(payloadValue_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, payloadValue_); + } + if (payloadLocation_ + != com.google.cloud.websecurityscanner.v1.Xxe.Location.LOCATION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, payloadLocation_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.websecurityscanner.v1.Xxe)) { + return super.equals(obj); + } + com.google.cloud.websecurityscanner.v1.Xxe other = + (com.google.cloud.websecurityscanner.v1.Xxe) obj; + + if (!getPayloadValue().equals(other.getPayloadValue())) return false; + if (payloadLocation_ != other.payloadLocation_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PAYLOAD_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getPayloadValue().hashCode(); + hash = (37 * hash) + PAYLOAD_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + payloadLocation_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.websecurityscanner.v1.Xxe parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.websecurityscanner.v1.Xxe parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.websecurityscanner.v1.Xxe parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.websecurityscanner.v1.Xxe parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.websecurityscanner.v1.Xxe parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.websecurityscanner.v1.Xxe parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.websecurityscanner.v1.Xxe parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.websecurityscanner.v1.Xxe parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.websecurityscanner.v1.Xxe parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.websecurityscanner.v1.Xxe parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.websecurityscanner.v1.Xxe parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.websecurityscanner.v1.Xxe parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.Xxe prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *+ * Information reported for an XXE. + *+ * + * Protobuf type {@code google.cloud.websecurityscanner.v1.Xxe} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder+ implements + // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.Xxe) + com.google.cloud.websecurityscanner.v1.XxeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1_Xxe_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1_Xxe_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.websecurityscanner.v1.Xxe.class, + com.google.cloud.websecurityscanner.v1.Xxe.Builder.class); + } + + // Construct using com.google.cloud.websecurityscanner.v1.Xxe.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + payloadValue_ = ""; + + payloadLocation_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1_Xxe_descriptor; + } + + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.Xxe getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1.Xxe.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.Xxe build() { + com.google.cloud.websecurityscanner.v1.Xxe result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.Xxe buildPartial() { + com.google.cloud.websecurityscanner.v1.Xxe result = + new com.google.cloud.websecurityscanner.v1.Xxe(this); + result.payloadValue_ = payloadValue_; + result.payloadLocation_ = payloadLocation_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.websecurityscanner.v1.Xxe) { + return mergeFrom((com.google.cloud.websecurityscanner.v1.Xxe) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.Xxe other) { + if (other == com.google.cloud.websecurityscanner.v1.Xxe.getDefaultInstance()) return this; + if (!other.getPayloadValue().isEmpty()) { + payloadValue_ = other.payloadValue_; + onChanged(); + } + if (other.payloadLocation_ != 0) { + setPayloadLocationValue(other.getPayloadLocationValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.websecurityscanner.v1.Xxe parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.websecurityscanner.v1.Xxe) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object payloadValue_ = ""; + /** + * + * + * + * The XML string that triggered the XXE vulnerability. Non-payload values + * might be redacted. + *+ * + *string payload_value = 1;
+ * + * @return The payloadValue. + */ + public java.lang.String getPayloadValue() { + java.lang.Object ref = payloadValue_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + payloadValue_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *+ * The XML string that triggered the XXE vulnerability. Non-payload values + * might be redacted. + *+ * + *string payload_value = 1;
+ * + * @return The bytes for payloadValue. + */ + public com.google.protobuf.ByteString getPayloadValueBytes() { + java.lang.Object ref = payloadValue_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + payloadValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *+ * The XML string that triggered the XXE vulnerability. Non-payload values + * might be redacted. + *+ * + *string payload_value = 1;
+ * + * @param value The payloadValue to set. + * @return This builder for chaining. + */ + public Builder setPayloadValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + payloadValue_ = value; + onChanged(); + return this; + } + /** + * + * + *+ * The XML string that triggered the XXE vulnerability. Non-payload values + * might be redacted. + *+ * + *string payload_value = 1;
+ * + * @return This builder for chaining. + */ + public Builder clearPayloadValue() { + + payloadValue_ = getDefaultInstance().getPayloadValue(); + onChanged(); + return this; + } + /** + * + * + *+ * The XML string that triggered the XXE vulnerability. Non-payload values + * might be redacted. + *+ * + *string payload_value = 1;
+ * + * @param value The bytes for payloadValue to set. + * @return This builder for chaining. + */ + public Builder setPayloadValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + payloadValue_ = value; + onChanged(); + return this; + } + + private int payloadLocation_ = 0; + /** + * + * + *+ * Location within the request where the payload was placed. + *+ * + *.google.cloud.websecurityscanner.v1.Xxe.Location payload_location = 2;
+ * + * @return The enum numeric value on the wire for payloadLocation. + */ + @java.lang.Override + public int getPayloadLocationValue() { + return payloadLocation_; + } + /** + * + * + *+ * Location within the request where the payload was placed. + *+ * + *.google.cloud.websecurityscanner.v1.Xxe.Location payload_location = 2;
+ * + * @param value The enum numeric value on the wire for payloadLocation to set. + * @return This builder for chaining. + */ + public Builder setPayloadLocationValue(int value) { + + payloadLocation_ = value; + onChanged(); + return this; + } + /** + * + * + *+ * Location within the request where the payload was placed. + *+ * + *.google.cloud.websecurityscanner.v1.Xxe.Location payload_location = 2;
+ * + * @return The payloadLocation. + */ + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.Xxe.Location getPayloadLocation() { + @SuppressWarnings("deprecation") + com.google.cloud.websecurityscanner.v1.Xxe.Location result = + com.google.cloud.websecurityscanner.v1.Xxe.Location.valueOf(payloadLocation_); + return result == null + ? com.google.cloud.websecurityscanner.v1.Xxe.Location.UNRECOGNIZED + : result; + } + /** + * + * + *+ * Location within the request where the payload was placed. + *+ * + *.google.cloud.websecurityscanner.v1.Xxe.Location payload_location = 2;
+ * + * @param value The payloadLocation to set. + * @return This builder for chaining. + */ + public Builder setPayloadLocation(com.google.cloud.websecurityscanner.v1.Xxe.Location value) { + if (value == null) { + throw new NullPointerException(); + } + + payloadLocation_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *+ * Location within the request where the payload was placed. + *+ * + *.google.cloud.websecurityscanner.v1.Xxe.Location payload_location = 2;
+ * + * @return This builder for chaining. + */ + public Builder clearPayloadLocation() { + + payloadLocation_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.Xxe) + } + + // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.Xxe) + private static final com.google.cloud.websecurityscanner.v1.Xxe DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.Xxe(); + } + + public static com.google.cloud.websecurityscanner.v1.Xxe getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.ParserPARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public Xxe parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Xxe(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.Xxe getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XxeOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XxeOrBuilder.java new file mode 100644 index 000000000000..07aefcaba664 --- /dev/null +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XxeOrBuilder.java @@ -0,0 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1/finding_addon.proto + +package com.google.cloud.websecurityscanner.v1; + +public interface XxeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.Xxe) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + * + * The XML string that triggered the XXE vulnerability. Non-payload values + * might be redacted. + *+ * + *string payload_value = 1;
+ * + * @return The payloadValue. + */ + java.lang.String getPayloadValue(); + /** + * + * + *+ * The XML string that triggered the XXE vulnerability. Non-payload values + * might be redacted. + *+ * + *string payload_value = 1;
+ * + * @return The bytes for payloadValue. + */ + com.google.protobuf.ByteString getPayloadValueBytes(); + + /** + * + * + *+ * Location within the request where the payload was placed. + *+ * + *.google.cloud.websecurityscanner.v1.Xxe.Location payload_location = 2;
+ * + * @return The enum numeric value on the wire for payloadLocation. + */ + int getPayloadLocationValue(); + /** + * + * + *+ * Location within the request where the payload was placed. + *+ * + *.google.cloud.websecurityscanner.v1.Xxe.Location payload_location = 2;
+ * + * @return The payloadLocation. + */ + com.google.cloud.websecurityscanner.v1.Xxe.Location getPayloadLocation(); +} diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/crawled_url.proto b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/crawled_url.proto index 37724b804525..65fc000ffc40 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/crawled_url.proto +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/crawled_url.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding.proto b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding.proto index 32bd5d8335a3..71fea9501938 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding.proto +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -116,4 +116,7 @@ message Finding { // Output only. An addon containing information reported for an XSS, if any. Xss xss = 14; + + // Output only. An addon containing information reported for an XXE, if any. + Xxe xxe = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_addon.proto b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_addon.proto index 4fb7ec1d3c93..1bcec8c716fe 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_addon.proto +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_addon.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -145,3 +145,22 @@ message Xss { // The reproduction url for the seeding POST request of a Stored XSS. string stored_xss_seeding_url = 4; } + +// Information reported for an XXE. +message Xxe { + // Locations within a request where XML was substituted. + enum Location { + // Unknown Location. + LOCATION_UNSPECIFIED = 0; + + // The XML payload replaced the complete request body. + COMPLETE_REQUEST_BODY = 1; + } + + // The XML string that triggered the XXE vulnerability. Non-payload values + // might be redacted. + string payload_value = 1; + + // Location within the request where the payload was placed. + Location payload_location = 2; +} diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_type_stats.proto b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_type_stats.proto index 7eca01ed2421..7999f76d6a75 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_type_stats.proto +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_type_stats.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config.proto b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config.proto index 901d01e40e9f..85641af2fb54 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config.proto +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -33,6 +33,8 @@ message ScanConfig { message Authentication { // Describes authentication configuration that uses a Google account. message GoogleAccount { + option deprecated = true; + // Required. The user name of the Google account. string username = 1; @@ -76,7 +78,7 @@ message ScanConfig { // Authentication configuration oneof authentication { // Authentication using a Google account. - GoogleAccount google_account = 1; + GoogleAccount google_account = 1 [deprecated = true]; // Authentication using a custom account. CustomAccount custom_account = 2; @@ -185,4 +187,7 @@ message ScanConfig { // Whether the scan configuration has enabled static IP address scan feature. // If enabled, the scanner will access applications from static IP addresses. bool static_ip_scan = 14; + + // Whether to keep scanning even if most requests return HTTP error codes. + bool ignore_http_status_errors = 15; } diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config_error.proto b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config_error.proto index 5d544578a1af..5924f91553dd 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config_error.proto +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run.proto b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run.proto index 465c6cb67aa9..71df3a043ee0 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run.proto +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_error_trace.proto b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_error_trace.proto index 5234eee22756..0c41c14321f0 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_error_trace.proto +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_error_trace.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -31,7 +31,7 @@ option ruby_package = "Google::Cloud::WebSecurityScanner::V1"; message ScanRunErrorTrace { // Output only. // Defines an error reason code. - // Next id: 7 + // Next id: 8 enum Code { // Default value is never used. CODE_UNSPECIFIED = 0; diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto index 43a5017df2a1..dfc61697701e 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -51,6 +51,9 @@ message ScanRunWarningTrace { // Indicates that a scan is blocked by IAP. BLOCKED_BY_IAP = 4; + + // Indicates that no seeds is found for a scan + NO_STARTING_URL_FOUND_FOR_MANAGED_SCAN = 5; } // Output only. Indicates the warning code. diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/web_security_scanner.proto b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/web_security_scanner.proto index 5f1bfcd4137e..efcc9bf2d39d 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/web_security_scanner.proto +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/web_security_scanner.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -17,6 +17,7 @@ syntax = "proto3"; package google.cloud.websecurityscanner.v1; import "google/api/annotations.proto"; +import "google/api/client.proto"; import "google/cloud/websecurityscanner/v1/crawled_url.proto"; import "google/cloud/websecurityscanner/v1/finding.proto"; import "google/cloud/websecurityscanner/v1/finding_type_stats.proto"; @@ -24,7 +25,6 @@ import "google/cloud/websecurityscanner/v1/scan_config.proto"; import "google/cloud/websecurityscanner/v1/scan_run.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; -import "google/api/client.proto"; option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1;websecurityscanner"; diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java index 0165340a3932..14794010743c 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 WebSecurityScannerStubSettings.Builder webSecurityScannerSettingsBuilder = WebSecurityScannerStubSettings.newBuilder(); webSecurityScannerSettingsBuilder diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java index 6b45bc3b096f..2b22896abd94 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java index 376357083e6d..bdbe327fc1b0 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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( diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetEndpoint.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetEndpoint.java index 4b0f7a86ee1e..aeac6b1b3953 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetEndpoint.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetEndpoint.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetEndpoint() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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().setEndpoint(myEndpoint).build(); WebSecurityScannerClient webSecurityScannerClient = diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java index d5be65fc6732..d768930e240f 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { CreateScanConfigRequest request = CreateScanConfigRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java index 74ffd5935d9d..254072432abf 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { CreateScanConfigRequest request = CreateScanConfigRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java index 365e7e26d429..3980d29bed3c 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { DeleteScanConfigRequest request = DeleteScanConfigRequest.newBuilder().setName("name3373707").build(); diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java index f5420912593c..a9686e26fdd4 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { DeleteScanConfigRequest request = DeleteScanConfigRequest.newBuilder().setName("name3373707").build(); diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/AsyncGetFinding.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/AsyncGetFinding.java index aca1c9d11d53..4573ad0cf8c6 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/AsyncGetFinding.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/AsyncGetFinding.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetFinding() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetFindingRequest request = GetFindingRequest.newBuilder().setName("name3373707").build(); ApiFuturefuture = webSecurityScannerClient.getFindingCallable().futureCall(request); diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/SyncGetFinding.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/SyncGetFinding.java index a022e0228390..c9d55db255e8 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/SyncGetFinding.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/SyncGetFinding.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetFinding() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetFindingRequest request = GetFindingRequest.newBuilder().setName("name3373707").build(); Finding response = webSecurityScannerClient.getFinding(request); diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java index 40a2e73d54da..790005c9134c 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetScanConfigRequest request = GetScanConfigRequest.newBuilder().setName("name3373707").build(); diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java index 7d05af132aa7..6df07bc9cfe0 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetScanConfigRequest request = GetScanConfigRequest.newBuilder().setName("name3373707").build(); diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/AsyncGetScanRun.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/AsyncGetScanRun.java index 35f5963c232d..d318bf89e364 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/AsyncGetScanRun.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/AsyncGetScanRun.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetScanRun() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetScanRunRequest request = GetScanRunRequest.newBuilder().setName("name3373707").build(); ApiFuture future = webSecurityScannerClient.getScanRunCallable().futureCall(request); diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/SyncGetScanRun.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/SyncGetScanRun.java index 4182b871acd8..77d84485641c 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/SyncGetScanRun.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/SyncGetScanRun.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetScanRun() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetScanRunRequest request = GetScanRunRequest.newBuilder().setName("name3373707").build(); ScanRun response = webSecurityScannerClient.getScanRun(request); diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java index 8128b5bea41d..dc4f0f833dc0 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListCrawledUrls() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListCrawledUrlsRequest request = ListCrawledUrlsRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java index 85d06350ee0d..a6118a641170 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListCrawledUrlsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListCrawledUrlsRequest request = ListCrawledUrlsRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java index ad9bf66c4e76..1d85a0348231 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListCrawledUrls() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListCrawledUrlsRequest request = ListCrawledUrlsRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindings.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindings.java index 0549b8d283b6..11256a7a95cf 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindings.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindings.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListFindings() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListFindingsRequest request = ListFindingsRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java index 308c9c278714..de812a345190 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListFindingsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListFindingsRequest request = ListFindingsRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/SyncListFindings.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/SyncListFindings.java index 8d3b45862f47..ee2b52d9ed21 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/SyncListFindings.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/SyncListFindings.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListFindings() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListFindingsRequest request = ListFindingsRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java index bf9db34a1aa4..cfcf7c07a43f 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListFindingTypeStats() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListFindingTypeStatsRequest request = ListFindingTypeStatsRequest.newBuilder().setParent("parent-995424086").build(); diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java index 17da1008e1b5..851a879b73e5 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListFindingTypeStats() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListFindingTypeStatsRequest request = ListFindingTypeStatsRequest.newBuilder().setParent("parent-995424086").build(); diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java index 75109e335e55..32d26aaacfd1 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListScanConfigs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanConfigsRequest request = ListScanConfigsRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java index 94ee8483089b..040802823f8d 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListScanConfigsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanConfigsRequest request = ListScanConfigsRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java index 8a97137bf7bd..9b9f90816863 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListScanConfigs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanConfigsRequest request = ListScanConfigsRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRuns.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRuns.java index ea35bc6cd99a..3a0b637374b9 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRuns.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRuns.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListScanRuns() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanRunsRequest request = ListScanRunsRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java index 525941ed0ed5..4fe370d02939 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListScanRunsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanRunsRequest request = ListScanRunsRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/SyncListScanRuns.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/SyncListScanRuns.java index b63bddb36463..65baa2b6c615 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/SyncListScanRuns.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/SyncListScanRuns.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListScanRuns() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanRunsRequest request = ListScanRunsRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/AsyncStartScanRun.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/AsyncStartScanRun.java index b41ee01795fb..7711f2a1ed83 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/AsyncStartScanRun.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/AsyncStartScanRun.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncStartScanRun() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { StartScanRunRequest request = StartScanRunRequest.newBuilder().setName("name3373707").build(); ApiFuture future = diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/SyncStartScanRun.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/SyncStartScanRun.java index 68025cf825ae..1e5b33125a9d 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/SyncStartScanRun.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/SyncStartScanRun.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncStartScanRun() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { StartScanRunRequest request = StartScanRunRequest.newBuilder().setName("name3373707").build(); ScanRun response = webSecurityScannerClient.startScanRun(request); diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java index 94e0f8bb5814..f9ddbd00c6b1 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void asyncStopScanRun() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { StopScanRunRequest request = StopScanRunRequest.newBuilder().setName("name3373707").build(); ApiFuture future = diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/SyncStopScanRun.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/SyncStopScanRun.java index 7af2e73a20ef..f69fd4ec5240 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/SyncStopScanRun.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/SyncStopScanRun.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncStopScanRun() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { StopScanRunRequest request = StopScanRunRequest.newBuilder().setName("name3373707").build(); ScanRun response = webSecurityScannerClient.stopScanRun(request); diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java index cea409c304c9..c1d5a6bdc643 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { UpdateScanConfigRequest request = UpdateScanConfigRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java index a29bbab65803..4e6afc5553c9 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { UpdateScanConfigRequest request = UpdateScanConfigRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java index 10363a8c4954..e20eead030cd 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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.Builder webSecurityScannerSettingsBuilder = WebSecurityScannerSettings.newBuilder(); webSecurityScannerSettingsBuilder diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java index 0054c532f15a..d11142bde45e 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 WebSecurityScannerStubSettings.Builder webSecurityScannerSettingsBuilder = WebSecurityScannerStubSettings.newBuilder(); webSecurityScannerSettingsBuilder diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java index d6a5889f0dbb..7019206958d8 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java index e8a0abd4bf27..db26f1f5b4d7 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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( diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetEndpoint.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetEndpoint.java index 5e6cc175a7f3..7af22c1d2399 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetEndpoint.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetEndpoint.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetEndpoint() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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().setEndpoint(myEndpoint).build(); WebSecurityScannerClient webSecurityScannerClient = diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java index 575bd2743258..727ec8a73ea6 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { CreateScanConfigRequest request = CreateScanConfigRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java index ea53bdff69b6..a4c85d1c1c8a 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { CreateScanConfigRequest request = CreateScanConfigRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java index 632027180801..34b359bc81fb 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateScanConfigProjectnameScanconfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ProjectName parent = ProjectName.of("[PROJECT]"); ScanConfig scanConfig = ScanConfig.newBuilder().build(); diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java index f0a826cb46ec..cd7e4682f223 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateScanConfigStringScanconfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String parent = ProjectName.of("[PROJECT]").toString(); ScanConfig scanConfig = ScanConfig.newBuilder().build(); diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java index 318e08134d33..8c4fd2afab61 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { DeleteScanConfigRequest request = DeleteScanConfigRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java index 25c76050608c..1947e5c5d82e 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { DeleteScanConfigRequest request = DeleteScanConfigRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java index aa69ac772c46..d5967bcc0785 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteScanConfigScanconfigname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]"); webSecurityScannerClient.deleteScanConfig(name); diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java index 83a25761ebc1..0414c1e6aaba 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteScanConfigString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString(); webSecurityScannerClient.deleteScanConfig(name); diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/AsyncGetFinding.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/AsyncGetFinding.java index abf0ec3e5e96..62daf3272545 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/AsyncGetFinding.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/AsyncGetFinding.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetFinding() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetFindingRequest request = GetFindingRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFinding.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFinding.java index e3e6ac246b80..ee6f47f9b074 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFinding.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFinding.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetFinding() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetFindingRequest request = GetFindingRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java index cf08995dbd59..42d831e5927b 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetFindingFindingname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { FindingName name = FindingName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]", "[FINDING]"); Finding response = webSecurityScannerClient.getFinding(name); diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingString.java index 82caa2eed6c1..a1f432b98776 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingString.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetFindingString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String name = FindingName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]", "[FINDING]").toString(); diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java index b1bfa1572332..305ccbeb206e 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetScanConfigRequest request = GetScanConfigRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java index 1a49e57fcd11..5002e6519bfa 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetScanConfigRequest request = GetScanConfigRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java index c90631d78323..576ec8358f8b 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetScanConfigScanconfigname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]"); ScanConfig response = webSecurityScannerClient.getScanConfig(name); diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java index 47c5cbd3bea0..58893aaf434f 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetScanConfigString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString(); ScanConfig response = webSecurityScannerClient.getScanConfig(name); diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/AsyncGetScanRun.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/AsyncGetScanRun.java index 9d46af378041..4b3128eafbaa 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/AsyncGetScanRun.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/AsyncGetScanRun.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetScanRun() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetScanRunRequest request = GetScanRunRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRun.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRun.java index 24aa7b9a7804..f008a4f97a8e 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRun.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRun.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetScanRun() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetScanRunRequest request = GetScanRunRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java index 3473b887dd12..b648e9edbdd3 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetScanRunScanrunname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanRunName name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); ScanRun response = webSecurityScannerClient.getScanRun(name); diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunString.java index 326bcb949d77..7818875a310d 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunString.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetScanRunString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString(); ScanRun response = webSecurityScannerClient.getScanRun(name); diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java index 4c85e3ae2ea2..2a8da9c91dfa 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListCrawledUrls() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListCrawledUrlsRequest request = ListCrawledUrlsRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java index 9b80874c862f..a05a94dce9d6 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListCrawledUrlsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListCrawledUrlsRequest request = ListCrawledUrlsRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java index c7a68c46d623..641e3ce4f678 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListCrawledUrls() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListCrawledUrlsRequest request = ListCrawledUrlsRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java index 0977ec19802a..4aeab8658548 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListCrawledUrlsScanrunname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); for (CrawledUrl element : webSecurityScannerClient.listCrawledUrls(parent).iterateAll()) { diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java index a02c74eab312..0b73c9a7f1c3 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListCrawledUrlsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString(); for (CrawledUrl element : webSecurityScannerClient.listCrawledUrls(parent).iterateAll()) { diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindings.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindings.java index 110132b9c0a3..94614bab8789 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindings.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindings.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListFindings() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListFindingsRequest request = ListFindingsRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java index ebeba969ac13..66b5fd5dfe8a 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListFindingsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListFindingsRequest request = ListFindingsRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindings.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindings.java index 3c9686e36950..3e707a4afddc 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindings.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindings.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListFindings() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListFindingsRequest request = ListFindingsRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java index 96d74aef8787..eef02f68aa0d 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListFindingsScanrunnameString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); String filter = "filter-1274492040"; diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsStringString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsStringString.java index 1c99bf6ef585..974cfe51fee9 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsStringString.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsStringString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListFindingsStringString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString(); String filter = "filter-1274492040"; diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java index d4b4f87ad2f9..bd4a491c67b9 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListFindingTypeStats() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListFindingTypeStatsRequest request = ListFindingTypeStatsRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java index 5b3cc2582ef6..149648c850fc 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListFindingTypeStats() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListFindingTypeStatsRequest request = ListFindingTypeStatsRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java index 9d45b5510065..8a4929d35573 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListFindingTypeStatsScanrunname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); ListFindingTypeStatsResponse response = webSecurityScannerClient.listFindingTypeStats(parent); diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java index 022a70ef44cb..8de69a539144 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListFindingTypeStatsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString(); ListFindingTypeStatsResponse response = webSecurityScannerClient.listFindingTypeStats(parent); diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java index 9414028e6bd4..a30654acbfdc 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListScanConfigs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanConfigsRequest request = ListScanConfigsRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java index 8ff3868972c3..c2be7ab32bf7 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListScanConfigsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanConfigsRequest request = ListScanConfigsRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java index e21641f0dc4d..58979eaf6b6d 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListScanConfigs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanConfigsRequest request = ListScanConfigsRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java index 8bb2b6a9c451..e5c74c175b00 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListScanConfigsProjectname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ProjectName parent = ProjectName.of("[PROJECT]"); for (ScanConfig element : webSecurityScannerClient.listScanConfigs(parent).iterateAll()) { diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java index 3fe88a3e0905..6aa157dfe93d 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListScanConfigsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String parent = ProjectName.of("[PROJECT]").toString(); for (ScanConfig element : webSecurityScannerClient.listScanConfigs(parent).iterateAll()) { diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRuns.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRuns.java index d221b828eddd..35a4c74f34f6 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRuns.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRuns.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListScanRuns() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanRunsRequest request = ListScanRunsRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java index 833ec846567a..f53278a6120c 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListScanRunsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanRunsRequest request = ListScanRunsRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRuns.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRuns.java index 854e4de0ee3e..6e1c6fe95999 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRuns.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRuns.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListScanRuns() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanRunsRequest request = ListScanRunsRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java index a7beab8876dd..b51e29b752b6 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListScanRunsScanconfigname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanConfigName parent = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]"); for (ScanRun element : webSecurityScannerClient.listScanRuns(parent).iterateAll()) { diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsString.java index 2c166a33591e..6dae71b383fa 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsString.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListScanRunsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String parent = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString(); for (ScanRun element : webSecurityScannerClient.listScanRuns(parent).iterateAll()) { diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/AsyncStartScanRun.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/AsyncStartScanRun.java index a8b37337b671..a52d29021318 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/AsyncStartScanRun.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/AsyncStartScanRun.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncStartScanRun() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { StartScanRunRequest request = StartScanRunRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRun.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRun.java index 5df8e7086060..557224195889 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRun.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRun.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncStartScanRun() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { StartScanRunRequest request = StartScanRunRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java index 6da3d9e1cfc6..66ec2a30d2bb 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncStartScanRunScanconfigname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]"); ScanRun response = webSecurityScannerClient.startScanRun(name); diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunString.java index fc363f9231e8..6aea3c66f728 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunString.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncStartScanRunString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString(); ScanRun response = webSecurityScannerClient.startScanRun(name); diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java index 00de868db145..387b05c9a462 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncStopScanRun() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { StopScanRunRequest request = StopScanRunRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRun.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRun.java index 475771256c8b..17e55207542e 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRun.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRun.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncStopScanRun() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { StopScanRunRequest request = StopScanRunRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java index 6d73b764c75a..28f0b267e829 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncStopScanRunScanrunname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanRunName name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); ScanRun response = webSecurityScannerClient.stopScanRun(name); diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java index 9086eebb16a2..59e05185ae4e 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncStopScanRunString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString(); ScanRun response = webSecurityScannerClient.stopScanRun(name); diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java index a2c5687ca4b3..e4b9f39ee0f1 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { UpdateScanConfigRequest request = UpdateScanConfigRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java index fa42867417e0..e6de0264c31d 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { UpdateScanConfigRequest request = UpdateScanConfigRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java index b1fc7d58a9ab..2f70212e5589 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateScanConfigScanconfigFieldmask() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanConfig scanConfig = ScanConfig.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java index 27874bcbf3ba..a109ebc67706 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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.Builder webSecurityScannerSettingsBuilder = WebSecurityScannerSettings.newBuilder(); webSecurityScannerSettingsBuilder diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java index 535fb251677f..b8eb07c197b4 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 WebSecurityScannerStubSettings.Builder webSecurityScannerSettingsBuilder = WebSecurityScannerStubSettings.newBuilder(); webSecurityScannerSettingsBuilder diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java index b297287b162f..2bf1751880db 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java index ef281a260764..53a9f6e6571e 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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( diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetEndpoint.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetEndpoint.java index a0197f2fca7b..5625ec1dcd9c 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetEndpoint.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetEndpoint.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetEndpoint() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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().setEndpoint(myEndpoint).build(); WebSecurityScannerClient webSecurityScannerClient = diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java index fa9af7ec0c84..0ebf6b61cf23 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { CreateScanConfigRequest request = CreateScanConfigRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java index 288c79433bb7..09564644ac3c 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { CreateScanConfigRequest request = CreateScanConfigRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java index aaa3aefc387d..09443a85f1d2 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateScanConfigProjectnameScanconfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ProjectName parent = ProjectName.of("[PROJECT]"); ScanConfig scanConfig = ScanConfig.newBuilder().build(); diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java index d72e98278f9c..f2cbabe64b8e 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateScanConfigStringScanconfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String parent = ProjectName.of("[PROJECT]").toString(); ScanConfig scanConfig = ScanConfig.newBuilder().build(); diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java index 2806318283f6..b95137d926b0 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { DeleteScanConfigRequest request = DeleteScanConfigRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java index afc60d6a182f..41dd0f35552e 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { DeleteScanConfigRequest request = DeleteScanConfigRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java index a5fb2feb424a..ba78e857d633 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteScanConfigScanconfigname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]"); webSecurityScannerClient.deleteScanConfig(name); diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java index ed8cf896283b..2924cc07c051 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteScanConfigString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString(); webSecurityScannerClient.deleteScanConfig(name); diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/AsyncGetFinding.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/AsyncGetFinding.java index 5f43cc0d3ce3..0d77a8d9c2f4 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/AsyncGetFinding.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/AsyncGetFinding.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetFinding() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetFindingRequest request = GetFindingRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFinding.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFinding.java index 7e171b7fe668..f6bbab6324fb 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFinding.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFinding.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetFinding() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetFindingRequest request = GetFindingRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java index 7852f9bef089..640a2eace5e0 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetFindingFindingname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { FindingName name = FindingName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]", "[FINDING]"); Finding response = webSecurityScannerClient.getFinding(name); diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingString.java index 6e267654f77a..5175119e63d0 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingString.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetFindingString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String name = FindingName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]", "[FINDING]").toString(); diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java index 5f28cfdb790b..855da3480e97 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetScanConfigRequest request = GetScanConfigRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java index ef7d3e7a0f79..8a9afa87b3b4 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetScanConfigRequest request = GetScanConfigRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java index c45234cd03b5..e7b2c9f6101d 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetScanConfigScanconfigname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]"); ScanConfig response = webSecurityScannerClient.getScanConfig(name); diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java index 53fac7e2acc2..b86ed99cb192 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetScanConfigString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString(); ScanConfig response = webSecurityScannerClient.getScanConfig(name); diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/AsyncGetScanRun.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/AsyncGetScanRun.java index 7ad7a7dd42bc..72939145522e 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/AsyncGetScanRun.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/AsyncGetScanRun.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetScanRun() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetScanRunRequest request = GetScanRunRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRun.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRun.java index 9b82a1d1deb1..5c3cb7c01060 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRun.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRun.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetScanRun() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { GetScanRunRequest request = GetScanRunRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java index e26bb6691be5..81d3d703a039 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetScanRunScanrunname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanRunName name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); ScanRun response = webSecurityScannerClient.getScanRun(name); diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunString.java index cf78eea982c6..a22e0fda6a50 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunString.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetScanRunString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString(); ScanRun response = webSecurityScannerClient.getScanRun(name); diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java index d81560dc4672..b2052717506a 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListCrawledUrls() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListCrawledUrlsRequest request = ListCrawledUrlsRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java index 2f99a3aee745..623321fce0cf 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListCrawledUrlsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListCrawledUrlsRequest request = ListCrawledUrlsRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java index 6a1ff75ca82e..f7752c6e207b 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListCrawledUrls() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListCrawledUrlsRequest request = ListCrawledUrlsRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java index 421920bbe755..7ec157bbcbb3 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListCrawledUrlsScanrunname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); for (CrawledUrl element : webSecurityScannerClient.listCrawledUrls(parent).iterateAll()) { diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java index 768211824800..a5040b11c3bd 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListCrawledUrlsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString(); for (CrawledUrl element : webSecurityScannerClient.listCrawledUrls(parent).iterateAll()) { diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindings.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindings.java index 6a66c7847f39..15bb65804ef1 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindings.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindings.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListFindings() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListFindingsRequest request = ListFindingsRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java index cfb8d63ace0e..ca93615ba997 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListFindingsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListFindingsRequest request = ListFindingsRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindings.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindings.java index 72dfbbef3cb5..d31fef30e901 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindings.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindings.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListFindings() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListFindingsRequest request = ListFindingsRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java index d314e24ea6c7..294822da99da 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListFindingsScanrunnameString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); String filter = "filter-1274492040"; diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsStringString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsStringString.java index 5bcf1fa00eb5..6e996cf88898 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsStringString.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsStringString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListFindingsStringString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString(); String filter = "filter-1274492040"; diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java index 88d7e3e6beb8..8b525fa6dbcd 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListFindingTypeStats() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListFindingTypeStatsRequest request = ListFindingTypeStatsRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java index df8125f0646c..ecf8d88dad74 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListFindingTypeStats() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListFindingTypeStatsRequest request = ListFindingTypeStatsRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java index 87c6c4071e12..92c2e034412b 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListFindingTypeStatsScanrunname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanRunName parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); ListFindingTypeStatsResponse response = webSecurityScannerClient.listFindingTypeStats(parent); diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java index cbd652648387..157412e54dec 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListFindingTypeStatsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String parent = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString(); ListFindingTypeStatsResponse response = webSecurityScannerClient.listFindingTypeStats(parent); diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java index 30b524232680..54fe14b9f919 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListScanConfigs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanConfigsRequest request = ListScanConfigsRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java index 37a8b60a47c2..2e2e6cf4d8e9 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListScanConfigsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanConfigsRequest request = ListScanConfigsRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java index bf6432615b5c..d71f45a70235 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListScanConfigs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanConfigsRequest request = ListScanConfigsRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java index c58c72be0872..8d2e7b5448ec 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListScanConfigsProjectname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ProjectName parent = ProjectName.of("[PROJECT]"); for (ScanConfig element : webSecurityScannerClient.listScanConfigs(parent).iterateAll()) { diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java index 980006c04f0c..aa50388312aa 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListScanConfigsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String parent = ProjectName.of("[PROJECT]").toString(); for (ScanConfig element : webSecurityScannerClient.listScanConfigs(parent).iterateAll()) { diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRuns.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRuns.java index e5a440d78b4d..387485294b93 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRuns.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRuns.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListScanRuns() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanRunsRequest request = ListScanRunsRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java index fc1b1534ec8e..ce495cdc0594 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListScanRunsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanRunsRequest request = ListScanRunsRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRuns.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRuns.java index aace25f01f4f..8eee3092a091 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRuns.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRuns.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListScanRuns() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ListScanRunsRequest request = ListScanRunsRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java index 1070d0a4b4ac..fb0a0fac76bc 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListScanRunsScanconfigname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanConfigName parent = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]"); for (ScanRun element : webSecurityScannerClient.listScanRuns(parent).iterateAll()) { diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsString.java index 94b19f264840..bc07cbc7c75f 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsString.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListScanRunsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String parent = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString(); for (ScanRun element : webSecurityScannerClient.listScanRuns(parent).iterateAll()) { diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/AsyncStartScanRun.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/AsyncStartScanRun.java index e997503536c5..427f242748ed 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/AsyncStartScanRun.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/AsyncStartScanRun.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncStartScanRun() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { StartScanRunRequest request = StartScanRunRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRun.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRun.java index a8d52ca72f37..38e5cd05984a 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRun.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRun.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncStartScanRun() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { StartScanRunRequest request = StartScanRunRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java index f8ba48cd0872..2dbe3bb99428 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncStartScanRunScanconfigname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanConfigName name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]"); ScanRun response = webSecurityScannerClient.startScanRun(name); diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunString.java index c5c411f16a1d..742df115bf92 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunString.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncStartScanRunString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String name = ScanConfigName.of("[PROJECT]", "[SCAN_CONFIG]").toString(); ScanRun response = webSecurityScannerClient.startScanRun(name); diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java index 4dc710439760..e62dc7365163 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncStopScanRun() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { StopScanRunRequest request = StopScanRunRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRun.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRun.java index b13712b0d333..186a380d88e1 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRun.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRun.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncStopScanRun() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { StopScanRunRequest request = StopScanRunRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java index c881236aca8c..fe8c7c02e85c 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncStopScanRunScanrunname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanRunName name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]"); ScanRun response = webSecurityScannerClient.stopScanRun(name); diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java index d20534962841..69ca907fba71 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncStopScanRunString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { String name = ScanRunName.of("[PROJECT]", "[SCAN_CONFIG]", "[SCAN_RUN]").toString(); ScanRun response = webSecurityScannerClient.stopScanRun(name); diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java index b2ac2033a952..18d21cc4b122 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { UpdateScanConfigRequest request = UpdateScanConfigRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java index c9526de70a52..07cef0b905e8 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { UpdateScanConfigRequest request = UpdateScanConfigRequest.newBuilder() diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java index d0111a8a0825..39a6238aaa63 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateScanConfigScanconfigFieldmask() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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 try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) { ScanConfig scanConfig = ScanConfig.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java index 9b6007a946eb..76b2acc8710c 100644 --- a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java +++ b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateScanConfig() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - 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.Builder webSecurityScannerSettingsBuilder = WebSecurityScannerSettings.newBuilder(); webSecurityScannerSettingsBuilder