diff --git a/grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java b/grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java deleted file mode 100644 index ce8eb5ce..00000000 --- a/grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java +++ /dev/null @@ -1,1825 +0,0 @@ -/* - * 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. - */ -package com.google.cloud.websecurityscanner.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Web Security Scanner Service identifies security vulnerabilities in web - * applications hosted on Google Cloud. It crawls your application, and - * attempts to exercise as many user inputs and event handlers as possible. - *- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/websecurityscanner/v1/web_security_scanner.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class WebSecurityScannerGrpc { - - private WebSecurityScannerGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.websecurityscanner.v1.WebSecurityScanner"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest, - com.google.cloud.websecurityscanner.v1.ScanConfig> - getCreateScanConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateScanConfig", - requestType = com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.class, - responseType = com.google.cloud.websecurityscanner.v1.ScanConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest, - com.google.cloud.websecurityscanner.v1.ScanConfig> - getCreateScanConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest, - com.google.cloud.websecurityscanner.v1.ScanConfig> - getCreateScanConfigMethod; - if ((getCreateScanConfigMethod = WebSecurityScannerGrpc.getCreateScanConfigMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getCreateScanConfigMethod = WebSecurityScannerGrpc.getCreateScanConfigMethod) - == null) { - WebSecurityScannerGrpc.getCreateScanConfigMethod = - getCreateScanConfigMethod = - io.grpc.MethodDescriptor - .
- * Web Security Scanner Service identifies security vulnerabilities in web - * applications hosted on Google Cloud. It crawls your application, and - * attempts to exercise as many user inputs and event handlers as possible. - *- */ - public abstract static class WebSecurityScannerImplBase implements io.grpc.BindableService { - - /** - * - * - *
- * Creates a new ScanConfig. - *- */ - public void createScanConfig( - com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest request, - io.grpc.stub.StreamObserver
- * Deletes an existing ScanConfig and its child resources. - *- */ - public void deleteScanConfig( - com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest request, - io.grpc.stub.StreamObserver
- * Gets a ScanConfig. - *- */ - public void getScanConfig( - com.google.cloud.websecurityscanner.v1.GetScanConfigRequest request, - io.grpc.stub.StreamObserver
- * Lists ScanConfigs under a given project. - *- */ - public void listScanConfigs( - com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest request, - io.grpc.stub.StreamObserver
- * Updates a ScanConfig. This method support partial update of a ScanConfig. - *- */ - public void updateScanConfig( - com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest request, - io.grpc.stub.StreamObserver
- * Start a ScanRun according to the given ScanConfig. - *- */ - public void startScanRun( - com.google.cloud.websecurityscanner.v1.StartScanRunRequest request, - io.grpc.stub.StreamObserver
- * Gets a ScanRun. - *- */ - public void getScanRun( - com.google.cloud.websecurityscanner.v1.GetScanRunRequest request, - io.grpc.stub.StreamObserver
- * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun - * stop time. - *- */ - public void listScanRuns( - com.google.cloud.websecurityscanner.v1.ListScanRunsRequest request, - io.grpc.stub.StreamObserver
- * Stops a ScanRun. The stopped ScanRun is returned. - *- */ - public void stopScanRun( - com.google.cloud.websecurityscanner.v1.StopScanRunRequest request, - io.grpc.stub.StreamObserver
- * List CrawledUrls under a given ScanRun. - *- */ - public void listCrawledUrls( - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest request, - io.grpc.stub.StreamObserver
- * Gets a Finding. - *- */ - public void getFinding( - com.google.cloud.websecurityscanner.v1.GetFindingRequest request, - io.grpc.stub.StreamObserver
- * List Findings under a given ScanRun. - *- */ - public void listFindings( - com.google.cloud.websecurityscanner.v1.ListFindingsRequest request, - io.grpc.stub.StreamObserver
- * List all FindingTypeStats under a given ScanRun. - *- */ - public void listFindingTypeStats( - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListFindingTypeStatsMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest, - com.google.cloud.websecurityscanner.v1.ScanConfig>( - this, METHODID_CREATE_SCAN_CONFIG))) - .addMethod( - getDeleteScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_SCAN_CONFIG))) - .addMethod( - getGetScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.GetScanConfigRequest, - com.google.cloud.websecurityscanner.v1.ScanConfig>( - this, METHODID_GET_SCAN_CONFIG))) - .addMethod( - getListScanConfigsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest, - com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse>( - this, METHODID_LIST_SCAN_CONFIGS))) - .addMethod( - getUpdateScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest, - com.google.cloud.websecurityscanner.v1.ScanConfig>( - this, METHODID_UPDATE_SCAN_CONFIG))) - .addMethod( - getStartScanRunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.StartScanRunRequest, - com.google.cloud.websecurityscanner.v1.ScanRun>( - this, METHODID_START_SCAN_RUN))) - .addMethod( - getGetScanRunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.GetScanRunRequest, - com.google.cloud.websecurityscanner.v1.ScanRun>(this, METHODID_GET_SCAN_RUN))) - .addMethod( - getListScanRunsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.ListScanRunsRequest, - com.google.cloud.websecurityscanner.v1.ListScanRunsResponse>( - this, METHODID_LIST_SCAN_RUNS))) - .addMethod( - getStopScanRunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.StopScanRunRequest, - com.google.cloud.websecurityscanner.v1.ScanRun>( - this, METHODID_STOP_SCAN_RUN))) - .addMethod( - getListCrawledUrlsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest, - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse>( - this, METHODID_LIST_CRAWLED_URLS))) - .addMethod( - getGetFindingMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.GetFindingRequest, - com.google.cloud.websecurityscanner.v1.Finding>(this, METHODID_GET_FINDING))) - .addMethod( - getListFindingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.ListFindingsRequest, - com.google.cloud.websecurityscanner.v1.ListFindingsResponse>( - this, METHODID_LIST_FINDINGS))) - .addMethod( - getListFindingTypeStatsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest, - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse>( - this, METHODID_LIST_FINDING_TYPE_STATS))) - .build(); - } - } - - /** - * - * - *
- * Web Security Scanner Service identifies security vulnerabilities in web - * applications hosted on Google Cloud. It crawls your application, and - * attempts to exercise as many user inputs and event handlers as possible. - *- */ - public static final class WebSecurityScannerStub - extends io.grpc.stub.AbstractAsyncStub
- * Creates a new ScanConfig. - *- */ - public void createScanConfig( - com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest request, - io.grpc.stub.StreamObserver
- * Deletes an existing ScanConfig and its child resources. - *- */ - public void deleteScanConfig( - com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest request, - io.grpc.stub.StreamObserver
- * Gets a ScanConfig. - *- */ - public void getScanConfig( - com.google.cloud.websecurityscanner.v1.GetScanConfigRequest request, - io.grpc.stub.StreamObserver
- * Lists ScanConfigs under a given project. - *- */ - public void listScanConfigs( - com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest request, - io.grpc.stub.StreamObserver
- * Updates a ScanConfig. This method support partial update of a ScanConfig. - *- */ - public void updateScanConfig( - com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest request, - io.grpc.stub.StreamObserver
- * Start a ScanRun according to the given ScanConfig. - *- */ - public void startScanRun( - com.google.cloud.websecurityscanner.v1.StartScanRunRequest request, - io.grpc.stub.StreamObserver
- * Gets a ScanRun. - *- */ - public void getScanRun( - com.google.cloud.websecurityscanner.v1.GetScanRunRequest request, - io.grpc.stub.StreamObserver
- * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun - * stop time. - *- */ - public void listScanRuns( - com.google.cloud.websecurityscanner.v1.ListScanRunsRequest request, - io.grpc.stub.StreamObserver
- * Stops a ScanRun. The stopped ScanRun is returned. - *- */ - public void stopScanRun( - com.google.cloud.websecurityscanner.v1.StopScanRunRequest request, - io.grpc.stub.StreamObserver
- * List CrawledUrls under a given ScanRun. - *- */ - public void listCrawledUrls( - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest request, - io.grpc.stub.StreamObserver
- * Gets a Finding. - *- */ - public void getFinding( - com.google.cloud.websecurityscanner.v1.GetFindingRequest request, - io.grpc.stub.StreamObserver
- * List Findings under a given ScanRun. - *- */ - public void listFindings( - com.google.cloud.websecurityscanner.v1.ListFindingsRequest request, - io.grpc.stub.StreamObserver
- * List all FindingTypeStats under a given ScanRun. - *- */ - public void listFindingTypeStats( - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFindingTypeStatsMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
- * Web Security Scanner Service identifies security vulnerabilities in web - * applications hosted on Google Cloud. It crawls your application, and - * attempts to exercise as many user inputs and event handlers as possible. - *- */ - public static final class WebSecurityScannerBlockingStub - extends io.grpc.stub.AbstractBlockingStub
- * Creates a new ScanConfig. - *- */ - public com.google.cloud.websecurityscanner.v1.ScanConfig createScanConfig( - com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateScanConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Deletes an existing ScanConfig and its child resources. - *- */ - public com.google.protobuf.Empty deleteScanConfig( - com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteScanConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Gets a ScanConfig. - *- */ - public com.google.cloud.websecurityscanner.v1.ScanConfig getScanConfig( - com.google.cloud.websecurityscanner.v1.GetScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetScanConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Lists ScanConfigs under a given project. - *- */ - public com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse listScanConfigs( - com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListScanConfigsMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Updates a ScanConfig. This method support partial update of a ScanConfig. - *- */ - public com.google.cloud.websecurityscanner.v1.ScanConfig updateScanConfig( - com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateScanConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Start a ScanRun according to the given ScanConfig. - *- */ - public com.google.cloud.websecurityscanner.v1.ScanRun startScanRun( - com.google.cloud.websecurityscanner.v1.StartScanRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStartScanRunMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Gets a ScanRun. - *- */ - public com.google.cloud.websecurityscanner.v1.ScanRun getScanRun( - com.google.cloud.websecurityscanner.v1.GetScanRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetScanRunMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun - * stop time. - *- */ - public com.google.cloud.websecurityscanner.v1.ListScanRunsResponse listScanRuns( - com.google.cloud.websecurityscanner.v1.ListScanRunsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListScanRunsMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Stops a ScanRun. The stopped ScanRun is returned. - *- */ - public com.google.cloud.websecurityscanner.v1.ScanRun stopScanRun( - com.google.cloud.websecurityscanner.v1.StopScanRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStopScanRunMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * List CrawledUrls under a given ScanRun. - *- */ - public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse listCrawledUrls( - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCrawledUrlsMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Gets a Finding. - *- */ - public com.google.cloud.websecurityscanner.v1.Finding getFinding( - com.google.cloud.websecurityscanner.v1.GetFindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetFindingMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * List Findings under a given ScanRun. - *- */ - public com.google.cloud.websecurityscanner.v1.ListFindingsResponse listFindings( - com.google.cloud.websecurityscanner.v1.ListFindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFindingsMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * List all FindingTypeStats under a given ScanRun. - *- */ - public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse listFindingTypeStats( - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFindingTypeStatsMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
- * Web Security Scanner Service identifies security vulnerabilities in web - * applications hosted on Google Cloud. It crawls your application, and - * attempts to exercise as many user inputs and event handlers as possible. - *- */ - public static final class WebSecurityScannerFutureStub - extends io.grpc.stub.AbstractFutureStub
- * Creates a new ScanConfig. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1.ScanConfig> - createScanConfig(com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateScanConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Deletes an existing ScanConfig and its child resources. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Gets a ScanConfig. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1.ScanConfig> - getScanConfig(com.google.cloud.websecurityscanner.v1.GetScanConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetScanConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Lists ScanConfigs under a given project. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse> - listScanConfigs(com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListScanConfigsMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Updates a ScanConfig. This method support partial update of a ScanConfig. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1.ScanConfig> - updateScanConfig(com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateScanConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Start a ScanRun according to the given ScanConfig. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1.ScanRun> - startScanRun(com.google.cloud.websecurityscanner.v1.StartScanRunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStartScanRunMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Gets a ScanRun. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1.ScanRun> - getScanRun(com.google.cloud.websecurityscanner.v1.GetScanRunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetScanRunMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun - * stop time. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1.ListScanRunsResponse> - listScanRuns(com.google.cloud.websecurityscanner.v1.ListScanRunsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListScanRunsMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Stops a ScanRun. The stopped ScanRun is returned. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1.ScanRun> - stopScanRun(com.google.cloud.websecurityscanner.v1.StopScanRunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStopScanRunMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * List CrawledUrls under a given ScanRun. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse> - listCrawledUrls(com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCrawledUrlsMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Gets a Finding. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1.Finding> - getFinding(com.google.cloud.websecurityscanner.v1.GetFindingRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetFindingMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * List Findings under a given ScanRun. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1.ListFindingsResponse> - listFindings(com.google.cloud.websecurityscanner.v1.ListFindingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFindingsMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * List all FindingTypeStats under a given ScanRun. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse> - listFindingTypeStats( - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFindingTypeStatsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_SCAN_CONFIG = 0; - private static final int METHODID_DELETE_SCAN_CONFIG = 1; - private static final int METHODID_GET_SCAN_CONFIG = 2; - private static final int METHODID_LIST_SCAN_CONFIGS = 3; - private static final int METHODID_UPDATE_SCAN_CONFIG = 4; - private static final int METHODID_START_SCAN_RUN = 5; - private static final int METHODID_GET_SCAN_RUN = 6; - private static final int METHODID_LIST_SCAN_RUNS = 7; - private static final int METHODID_STOP_SCAN_RUN = 8; - private static final int METHODID_LIST_CRAWLED_URLS = 9; - private static final int METHODID_GET_FINDING = 10; - private static final int METHODID_LIST_FINDINGS = 11; - private static final int METHODID_LIST_FINDING_TYPE_STATS = 12; - - private static final class MethodHandlers
- * Cloud Web Security Scanner Service identifies security vulnerabilities in web - * applications hosted on Google Cloud Platform. It crawls your application, and - * attempts to exercise as many user inputs and event handlers as possible. - *- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class WebSecurityScannerGrpc { - - private WebSecurityScannerGrpc() {} - - public static final String SERVICE_NAME = - "google.cloud.websecurityscanner.v1alpha.WebSecurityScanner"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig> - getCreateScanConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateScanConfig", - requestType = com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.class, - responseType = com.google.cloud.websecurityscanner.v1alpha.ScanConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig> - getCreateScanConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig> - getCreateScanConfigMethod; - if ((getCreateScanConfigMethod = WebSecurityScannerGrpc.getCreateScanConfigMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getCreateScanConfigMethod = WebSecurityScannerGrpc.getCreateScanConfigMethod) - == null) { - WebSecurityScannerGrpc.getCreateScanConfigMethod = - getCreateScanConfigMethod = - io.grpc.MethodDescriptor - .
- * Cloud Web Security Scanner Service identifies security vulnerabilities in web - * applications hosted on Google Cloud Platform. It crawls your application, and - * attempts to exercise as many user inputs and event handlers as possible. - *- */ - public abstract static class WebSecurityScannerImplBase implements io.grpc.BindableService { - - /** - * - * - *
- * Creates a new ScanConfig. - *- */ - public void createScanConfig( - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest request, - io.grpc.stub.StreamObserver
- * Deletes an existing ScanConfig and its child resources. - *- */ - public void deleteScanConfig( - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest request, - io.grpc.stub.StreamObserver
- * Gets a ScanConfig. - *- */ - public void getScanConfig( - com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest request, - io.grpc.stub.StreamObserver
- * Lists ScanConfigs under a given project. - *- */ - public void listScanConfigs( - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListScanConfigsMethod(), responseObserver); - } - - /** - * - * - *
- * Updates a ScanConfig. This method support partial update of a ScanConfig. - *- */ - public void updateScanConfig( - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest request, - io.grpc.stub.StreamObserver
- * Start a ScanRun according to the given ScanConfig. - *- */ - public void startScanRun( - com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest request, - io.grpc.stub.StreamObserver
- * Gets a ScanRun. - *- */ - public void getScanRun( - com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest request, - io.grpc.stub.StreamObserver
- * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun - * stop time. - *- */ - public void listScanRuns( - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListScanRunsMethod(), responseObserver); - } - - /** - * - * - *
- * Stops a ScanRun. The stopped ScanRun is returned. - *- */ - public void stopScanRun( - com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest request, - io.grpc.stub.StreamObserver
- * List CrawledUrls under a given ScanRun. - *- */ - public void listCrawledUrls( - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListCrawledUrlsMethod(), responseObserver); - } - - /** - * - * - *
- * Gets a Finding. - *- */ - public void getFinding( - com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest request, - io.grpc.stub.StreamObserver
- * List Findings under a given ScanRun. - *- */ - public void listFindings( - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListFindingsMethod(), responseObserver); - } - - /** - * - * - *
- * List all FindingTypeStats under a given ScanRun. - *- */ - public void listFindingTypeStats( - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListFindingTypeStatsMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig>( - this, METHODID_CREATE_SCAN_CONFIG))) - .addMethod( - getDeleteScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_SCAN_CONFIG))) - .addMethod( - getGetScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig>( - this, METHODID_GET_SCAN_CONFIG))) - .addMethod( - getListScanConfigsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse>( - this, METHODID_LIST_SCAN_CONFIGS))) - .addMethod( - getUpdateScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig>( - this, METHODID_UPDATE_SCAN_CONFIG))) - .addMethod( - getStartScanRunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanRun>( - this, METHODID_START_SCAN_RUN))) - .addMethod( - getGetScanRunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanRun>( - this, METHODID_GET_SCAN_RUN))) - .addMethod( - getListScanRunsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse>( - this, METHODID_LIST_SCAN_RUNS))) - .addMethod( - getStopScanRunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanRun>( - this, METHODID_STOP_SCAN_RUN))) - .addMethod( - getListCrawledUrlsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse>( - this, METHODID_LIST_CRAWLED_URLS))) - .addMethod( - getGetFindingMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest, - com.google.cloud.websecurityscanner.v1alpha.Finding>( - this, METHODID_GET_FINDING))) - .addMethod( - getListFindingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse>( - this, METHODID_LIST_FINDINGS))) - .addMethod( - getListFindingTypeStatsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse>( - this, METHODID_LIST_FINDING_TYPE_STATS))) - .build(); - } - } - - /** - * - * - *
- * Cloud Web Security Scanner Service identifies security vulnerabilities in web - * applications hosted on Google Cloud Platform. It crawls your application, and - * attempts to exercise as many user inputs and event handlers as possible. - *- */ - public static final class WebSecurityScannerStub - extends io.grpc.stub.AbstractAsyncStub
- * Creates a new ScanConfig. - *- */ - public void createScanConfig( - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest request, - io.grpc.stub.StreamObserver
- * Deletes an existing ScanConfig and its child resources. - *- */ - public void deleteScanConfig( - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest request, - io.grpc.stub.StreamObserver
- * Gets a ScanConfig. - *- */ - public void getScanConfig( - com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest request, - io.grpc.stub.StreamObserver
- * Lists ScanConfigs under a given project. - *- */ - public void listScanConfigs( - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListScanConfigsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
- * Updates a ScanConfig. This method support partial update of a ScanConfig. - *- */ - public void updateScanConfig( - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest request, - io.grpc.stub.StreamObserver
- * Start a ScanRun according to the given ScanConfig. - *- */ - public void startScanRun( - com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest request, - io.grpc.stub.StreamObserver
- * Gets a ScanRun. - *- */ - public void getScanRun( - com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest request, - io.grpc.stub.StreamObserver
- * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun - * stop time. - *- */ - public void listScanRuns( - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListScanRunsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
- * Stops a ScanRun. The stopped ScanRun is returned. - *- */ - public void stopScanRun( - com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest request, - io.grpc.stub.StreamObserver
- * List CrawledUrls under a given ScanRun. - *- */ - public void listCrawledUrls( - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCrawledUrlsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
- * Gets a Finding. - *- */ - public void getFinding( - com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest request, - io.grpc.stub.StreamObserver
- * List Findings under a given ScanRun. - *- */ - public void listFindings( - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFindingsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
- * List all FindingTypeStats under a given ScanRun. - *- */ - public void listFindingTypeStats( - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFindingTypeStatsMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
- * Cloud Web Security Scanner Service identifies security vulnerabilities in web - * applications hosted on Google Cloud Platform. It crawls your application, and - * attempts to exercise as many user inputs and event handlers as possible. - *- */ - public static final class WebSecurityScannerBlockingStub - extends io.grpc.stub.AbstractBlockingStub
- * Creates a new ScanConfig. - *- */ - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig createScanConfig( - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateScanConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Deletes an existing ScanConfig and its child resources. - *- */ - public com.google.protobuf.Empty deleteScanConfig( - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteScanConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Gets a ScanConfig. - *- */ - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig getScanConfig( - com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetScanConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Lists ScanConfigs under a given project. - *- */ - public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse listScanConfigs( - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListScanConfigsMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Updates a ScanConfig. This method support partial update of a ScanConfig. - *- */ - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig updateScanConfig( - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateScanConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Start a ScanRun according to the given ScanConfig. - *- */ - public com.google.cloud.websecurityscanner.v1alpha.ScanRun startScanRun( - com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStartScanRunMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Gets a ScanRun. - *- */ - public com.google.cloud.websecurityscanner.v1alpha.ScanRun getScanRun( - com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetScanRunMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun - * stop time. - *- */ - public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse listScanRuns( - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListScanRunsMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Stops a ScanRun. The stopped ScanRun is returned. - *- */ - public com.google.cloud.websecurityscanner.v1alpha.ScanRun stopScanRun( - com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStopScanRunMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * List CrawledUrls under a given ScanRun. - *- */ - public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse listCrawledUrls( - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCrawledUrlsMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Gets a Finding. - *- */ - public com.google.cloud.websecurityscanner.v1alpha.Finding getFinding( - com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetFindingMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * List Findings under a given ScanRun. - *- */ - public com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse listFindings( - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFindingsMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * List all FindingTypeStats under a given ScanRun. - *- */ - public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse - listFindingTypeStats( - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFindingTypeStatsMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
- * Cloud Web Security Scanner Service identifies security vulnerabilities in web - * applications hosted on Google Cloud Platform. It crawls your application, and - * attempts to exercise as many user inputs and event handlers as possible. - *- */ - public static final class WebSecurityScannerFutureStub - extends io.grpc.stub.AbstractFutureStub
- * Creates a new ScanConfig. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig> - createScanConfig( - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateScanConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Deletes an existing ScanConfig and its child resources. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Gets a ScanConfig. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig> - getScanConfig(com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetScanConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Lists ScanConfigs under a given project. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse> - listScanConfigs( - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListScanConfigsMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Updates a ScanConfig. This method support partial update of a ScanConfig. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig> - updateScanConfig( - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateScanConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Start a ScanRun according to the given ScanConfig. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1alpha.ScanRun> - startScanRun(com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStartScanRunMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Gets a ScanRun. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1alpha.ScanRun> - getScanRun(com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetScanRunMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun - * stop time. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse> - listScanRuns(com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListScanRunsMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Stops a ScanRun. The stopped ScanRun is returned. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1alpha.ScanRun> - stopScanRun(com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStopScanRunMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * List CrawledUrls under a given ScanRun. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse> - listCrawledUrls( - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCrawledUrlsMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Gets a Finding. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1alpha.Finding> - getFinding(com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetFindingMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * List Findings under a given ScanRun. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse> - listFindings(com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFindingsMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * List all FindingTypeStats under a given ScanRun. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse> - listFindingTypeStats( - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFindingTypeStatsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_SCAN_CONFIG = 0; - private static final int METHODID_DELETE_SCAN_CONFIG = 1; - private static final int METHODID_GET_SCAN_CONFIG = 2; - private static final int METHODID_LIST_SCAN_CONFIGS = 3; - private static final int METHODID_UPDATE_SCAN_CONFIG = 4; - private static final int METHODID_START_SCAN_RUN = 5; - private static final int METHODID_GET_SCAN_RUN = 6; - private static final int METHODID_LIST_SCAN_RUNS = 7; - private static final int METHODID_STOP_SCAN_RUN = 8; - private static final int METHODID_LIST_CRAWLED_URLS = 9; - private static final int METHODID_GET_FINDING = 10; - private static final int METHODID_LIST_FINDINGS = 11; - private static final int METHODID_LIST_FINDING_TYPE_STATS = 12; - - private static final class MethodHandlers
- * Cloud Web Security Scanner Service identifies security vulnerabilities in web - * applications hosted on Google Cloud Platform. It crawls your application, and - * attempts to exercise as many user inputs and event handlers as possible. - *- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class WebSecurityScannerGrpc { - - private WebSecurityScannerGrpc() {} - - public static final String SERVICE_NAME = - "google.cloud.websecurityscanner.v1beta.WebSecurityScanner"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest, - com.google.cloud.websecurityscanner.v1beta.ScanConfig> - getCreateScanConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateScanConfig", - requestType = com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.class, - responseType = com.google.cloud.websecurityscanner.v1beta.ScanConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest, - com.google.cloud.websecurityscanner.v1beta.ScanConfig> - getCreateScanConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest, - com.google.cloud.websecurityscanner.v1beta.ScanConfig> - getCreateScanConfigMethod; - if ((getCreateScanConfigMethod = WebSecurityScannerGrpc.getCreateScanConfigMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getCreateScanConfigMethod = WebSecurityScannerGrpc.getCreateScanConfigMethod) - == null) { - WebSecurityScannerGrpc.getCreateScanConfigMethod = - getCreateScanConfigMethod = - io.grpc.MethodDescriptor - .
- * Cloud Web Security Scanner Service identifies security vulnerabilities in web - * applications hosted on Google Cloud Platform. It crawls your application, and - * attempts to exercise as many user inputs and event handlers as possible. - *- */ - public abstract static class WebSecurityScannerImplBase implements io.grpc.BindableService { - - /** - * - * - *
- * Creates a new ScanConfig. - *- */ - public void createScanConfig( - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest request, - io.grpc.stub.StreamObserver
- * Deletes an existing ScanConfig and its child resources. - *- */ - public void deleteScanConfig( - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest request, - io.grpc.stub.StreamObserver
- * Gets a ScanConfig. - *- */ - public void getScanConfig( - com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest request, - io.grpc.stub.StreamObserver
- * Lists ScanConfigs under a given project. - *- */ - public void listScanConfigs( - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListScanConfigsMethod(), responseObserver); - } - - /** - * - * - *
- * Updates a ScanConfig. This method support partial update of a ScanConfig. - *- */ - public void updateScanConfig( - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest request, - io.grpc.stub.StreamObserver
- * Start a ScanRun according to the given ScanConfig. - *- */ - public void startScanRun( - com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest request, - io.grpc.stub.StreamObserver
- * Gets a ScanRun. - *- */ - public void getScanRun( - com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest request, - io.grpc.stub.StreamObserver
- * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun - * stop time. - *- */ - public void listScanRuns( - com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest request, - io.grpc.stub.StreamObserver
- * Stops a ScanRun. The stopped ScanRun is returned. - *- */ - public void stopScanRun( - com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest request, - io.grpc.stub.StreamObserver
- * List CrawledUrls under a given ScanRun. - *- */ - public void listCrawledUrls( - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListCrawledUrlsMethod(), responseObserver); - } - - /** - * - * - *
- * Gets a Finding. - *- */ - public void getFinding( - com.google.cloud.websecurityscanner.v1beta.GetFindingRequest request, - io.grpc.stub.StreamObserver
- * List Findings under a given ScanRun. - *- */ - public void listFindings( - com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest request, - io.grpc.stub.StreamObserver
- * List all FindingTypeStats under a given ScanRun. - *- */ - public void listFindingTypeStats( - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListFindingTypeStatsMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest, - com.google.cloud.websecurityscanner.v1beta.ScanConfig>( - this, METHODID_CREATE_SCAN_CONFIG))) - .addMethod( - getDeleteScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_SCAN_CONFIG))) - .addMethod( - getGetScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest, - com.google.cloud.websecurityscanner.v1beta.ScanConfig>( - this, METHODID_GET_SCAN_CONFIG))) - .addMethod( - getListScanConfigsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest, - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse>( - this, METHODID_LIST_SCAN_CONFIGS))) - .addMethod( - getUpdateScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest, - com.google.cloud.websecurityscanner.v1beta.ScanConfig>( - this, METHODID_UPDATE_SCAN_CONFIG))) - .addMethod( - getStartScanRunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest, - com.google.cloud.websecurityscanner.v1beta.ScanRun>( - this, METHODID_START_SCAN_RUN))) - .addMethod( - getGetScanRunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest, - com.google.cloud.websecurityscanner.v1beta.ScanRun>( - this, METHODID_GET_SCAN_RUN))) - .addMethod( - getListScanRunsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest, - com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse>( - this, METHODID_LIST_SCAN_RUNS))) - .addMethod( - getStopScanRunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest, - com.google.cloud.websecurityscanner.v1beta.ScanRun>( - this, METHODID_STOP_SCAN_RUN))) - .addMethod( - getListCrawledUrlsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest, - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse>( - this, METHODID_LIST_CRAWLED_URLS))) - .addMethod( - getGetFindingMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.GetFindingRequest, - com.google.cloud.websecurityscanner.v1beta.Finding>( - this, METHODID_GET_FINDING))) - .addMethod( - getListFindingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest, - com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse>( - this, METHODID_LIST_FINDINGS))) - .addMethod( - getListFindingTypeStatsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest, - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse>( - this, METHODID_LIST_FINDING_TYPE_STATS))) - .build(); - } - } - - /** - * - * - *
- * Cloud Web Security Scanner Service identifies security vulnerabilities in web - * applications hosted on Google Cloud Platform. It crawls your application, and - * attempts to exercise as many user inputs and event handlers as possible. - *- */ - public static final class WebSecurityScannerStub - extends io.grpc.stub.AbstractAsyncStub
- * Creates a new ScanConfig. - *- */ - public void createScanConfig( - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest request, - io.grpc.stub.StreamObserver
- * Deletes an existing ScanConfig and its child resources. - *- */ - public void deleteScanConfig( - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest request, - io.grpc.stub.StreamObserver
- * Gets a ScanConfig. - *- */ - public void getScanConfig( - com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest request, - io.grpc.stub.StreamObserver
- * Lists ScanConfigs under a given project. - *- */ - public void listScanConfigs( - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListScanConfigsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
- * Updates a ScanConfig. This method support partial update of a ScanConfig. - *- */ - public void updateScanConfig( - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest request, - io.grpc.stub.StreamObserver
- * Start a ScanRun according to the given ScanConfig. - *- */ - public void startScanRun( - com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest request, - io.grpc.stub.StreamObserver
- * Gets a ScanRun. - *- */ - public void getScanRun( - com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest request, - io.grpc.stub.StreamObserver
- * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun - * stop time. - *- */ - public void listScanRuns( - com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest request, - io.grpc.stub.StreamObserver
- * Stops a ScanRun. The stopped ScanRun is returned. - *- */ - public void stopScanRun( - com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest request, - io.grpc.stub.StreamObserver
- * List CrawledUrls under a given ScanRun. - *- */ - public void listCrawledUrls( - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCrawledUrlsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
- * Gets a Finding. - *- */ - public void getFinding( - com.google.cloud.websecurityscanner.v1beta.GetFindingRequest request, - io.grpc.stub.StreamObserver
- * List Findings under a given ScanRun. - *- */ - public void listFindings( - com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest request, - io.grpc.stub.StreamObserver
- * List all FindingTypeStats under a given ScanRun. - *- */ - public void listFindingTypeStats( - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFindingTypeStatsMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
- * Cloud Web Security Scanner Service identifies security vulnerabilities in web - * applications hosted on Google Cloud Platform. It crawls your application, and - * attempts to exercise as many user inputs and event handlers as possible. - *- */ - public static final class WebSecurityScannerBlockingStub - extends io.grpc.stub.AbstractBlockingStub
- * Creates a new ScanConfig. - *- */ - public com.google.cloud.websecurityscanner.v1beta.ScanConfig createScanConfig( - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateScanConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Deletes an existing ScanConfig and its child resources. - *- */ - public com.google.protobuf.Empty deleteScanConfig( - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteScanConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Gets a ScanConfig. - *- */ - public com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfig( - com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetScanConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Lists ScanConfigs under a given project. - *- */ - public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse listScanConfigs( - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListScanConfigsMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Updates a ScanConfig. This method support partial update of a ScanConfig. - *- */ - public com.google.cloud.websecurityscanner.v1beta.ScanConfig updateScanConfig( - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateScanConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Start a ScanRun according to the given ScanConfig. - *- */ - public com.google.cloud.websecurityscanner.v1beta.ScanRun startScanRun( - com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStartScanRunMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Gets a ScanRun. - *- */ - public com.google.cloud.websecurityscanner.v1beta.ScanRun getScanRun( - com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetScanRunMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun - * stop time. - *- */ - public com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse listScanRuns( - com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListScanRunsMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Stops a ScanRun. The stopped ScanRun is returned. - *- */ - public com.google.cloud.websecurityscanner.v1beta.ScanRun stopScanRun( - com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStopScanRunMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * List CrawledUrls under a given ScanRun. - *- */ - public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse listCrawledUrls( - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCrawledUrlsMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Gets a Finding. - *- */ - public com.google.cloud.websecurityscanner.v1beta.Finding getFinding( - com.google.cloud.websecurityscanner.v1beta.GetFindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetFindingMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * List Findings under a given ScanRun. - *- */ - public com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse listFindings( - com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFindingsMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * List all FindingTypeStats under a given ScanRun. - *- */ - public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse - listFindingTypeStats( - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFindingTypeStatsMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
- * Cloud Web Security Scanner Service identifies security vulnerabilities in web - * applications hosted on Google Cloud Platform. It crawls your application, and - * attempts to exercise as many user inputs and event handlers as possible. - *- */ - public static final class WebSecurityScannerFutureStub - extends io.grpc.stub.AbstractFutureStub
- * Creates a new ScanConfig. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1beta.ScanConfig> - createScanConfig( - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateScanConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Deletes an existing ScanConfig and its child resources. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Gets a ScanConfig. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1beta.ScanConfig> - getScanConfig(com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetScanConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Lists ScanConfigs under a given project. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse> - listScanConfigs(com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListScanConfigsMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Updates a ScanConfig. This method support partial update of a ScanConfig. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1beta.ScanConfig> - updateScanConfig( - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateScanConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Start a ScanRun according to the given ScanConfig. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1beta.ScanRun> - startScanRun(com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStartScanRunMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Gets a ScanRun. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1beta.ScanRun> - getScanRun(com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetScanRunMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun - * stop time. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse> - listScanRuns(com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListScanRunsMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Stops a ScanRun. The stopped ScanRun is returned. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1beta.ScanRun> - stopScanRun(com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStopScanRunMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * List CrawledUrls under a given ScanRun. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse> - listCrawledUrls(com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCrawledUrlsMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Gets a Finding. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1beta.Finding> - getFinding(com.google.cloud.websecurityscanner.v1beta.GetFindingRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetFindingMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * List Findings under a given ScanRun. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse> - listFindings(com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFindingsMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * List all FindingTypeStats under a given ScanRun. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse> - listFindingTypeStats( - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFindingTypeStatsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_SCAN_CONFIG = 0; - private static final int METHODID_DELETE_SCAN_CONFIG = 1; - private static final int METHODID_GET_SCAN_CONFIG = 2; - private static final int METHODID_LIST_SCAN_CONFIGS = 3; - private static final int METHODID_UPDATE_SCAN_CONFIG = 4; - private static final int METHODID_START_SCAN_RUN = 5; - private static final int METHODID_GET_SCAN_RUN = 6; - private static final int METHODID_LIST_SCAN_RUNS = 7; - private static final int METHODID_STOP_SCAN_RUN = 8; - private static final int METHODID_LIST_CRAWLED_URLS = 9; - private static final int METHODID_GET_FINDING = 10; - private static final int METHODID_LIST_FINDINGS = 11; - private static final int METHODID_LIST_FINDING_TYPE_STATS = 12; - - private static final class MethodHandlers
{@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/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java similarity index 97% rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java rename to owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java index 838d6101..fdb88c21 100644 --- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java +++ b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java @@ -31,6 +31,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.websecurityscanner.v1.stub.WebSecurityScannerStubSettings; @@ -58,8 +59,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/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/gapic_metadata.json b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/gapic_metadata.json similarity index 100% rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/gapic_metadata.json rename to owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/gapic_metadata.json diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/package-info.java b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/package-info.java similarity index 80% rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/package-info.java rename to owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/package-info.java index d6a90363..3b7c55f7 100644 --- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/package-info.java +++ b/owl-bot-staging/v1/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/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerCallableFactory.java b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerCallableFactory.java similarity index 100% rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerCallableFactory.java rename to owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerCallableFactory.java diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerStub.java b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerStub.java similarity index 99% rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerStub.java rename to owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerStub.java index 06ac8e88..708f4c8c 100644 --- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerStub.java +++ b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerStub.java @@ -54,6 +54,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerCallableFactory.java b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerCallableFactory.java similarity index 100% rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerCallableFactory.java rename to owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerCallableFactory.java diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerStub.java b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerStub.java similarity index 99% rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerStub.java rename to owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerStub.java index 448c4ade..a8cfd73b 100644 --- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerStub.java +++ b/owl-bot-staging/v1/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/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStub.java b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStub.java similarity index 100% rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStub.java rename to owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStub.java diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java similarity index 98% rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java rename to owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java index 863dfae8..5ee7c49a 100644 --- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java +++ b/owl-bot-staging/v1/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/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScanner.java b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScanner.java similarity index 100% rename from google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScanner.java rename to owl-bot-staging/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScanner.java diff --git a/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScannerImpl.java b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScannerImpl.java similarity index 100% rename from google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScannerImpl.java rename to owl-bot-staging/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScannerImpl.java diff --git a/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientHttpJsonTest.java b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientHttpJsonTest.java similarity index 99% rename from google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientHttpJsonTest.java rename to owl-bot-staging/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientHttpJsonTest.java index 88fea022..d678fbff 100644 --- a/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientHttpJsonTest.java +++ b/owl-bot-staging/v1/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/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientTest.java b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientTest.java similarity index 99% rename from google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientTest.java rename to owl-bot-staging/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientTest.java index e70a9522..c97774ef 100644 --- a/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientTest.java +++ b/owl-bot-staging/v1/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/owl-bot-staging/v1/grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java new file mode 100644 index 00000000..90f5d7df --- /dev/null +++ b/owl-bot-staging/v1/grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java @@ -0,0 +1,1349 @@ +package com.google.cloud.websecurityscanner.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *+ * Web Security Scanner Service identifies security vulnerabilities in web + * applications hosted on Google Cloud. It crawls your application, and + * attempts to exercise as many user inputs and event handlers as possible. + *+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/websecurityscanner/v1/web_security_scanner.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class WebSecurityScannerGrpc { + + private WebSecurityScannerGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.websecurityscanner.v1.WebSecurityScanner"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptorgetCreateScanConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateScanConfig", + requestType = com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.class, + responseType = com.google.cloud.websecurityscanner.v1.ScanConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateScanConfigMethod() { + io.grpc.MethodDescriptor getCreateScanConfigMethod; + if ((getCreateScanConfigMethod = WebSecurityScannerGrpc.getCreateScanConfigMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getCreateScanConfigMethod = WebSecurityScannerGrpc.getCreateScanConfigMethod) == null) { + WebSecurityScannerGrpc.getCreateScanConfigMethod = getCreateScanConfigMethod = + io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateScanConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("CreateScanConfig")) + .build(); + } + } + } + return getCreateScanConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteScanConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteScanConfig", + requestType = com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteScanConfigMethod() { + io.grpc.MethodDescriptor getDeleteScanConfigMethod; + if ((getDeleteScanConfigMethod = WebSecurityScannerGrpc.getDeleteScanConfigMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getDeleteScanConfigMethod = WebSecurityScannerGrpc.getDeleteScanConfigMethod) == null) { + WebSecurityScannerGrpc.getDeleteScanConfigMethod = getDeleteScanConfigMethod = + io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteScanConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("DeleteScanConfig")) + .build(); + } + } + } + return getDeleteScanConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetScanConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetScanConfig", + requestType = com.google.cloud.websecurityscanner.v1.GetScanConfigRequest.class, + responseType = com.google.cloud.websecurityscanner.v1.ScanConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetScanConfigMethod() { + io.grpc.MethodDescriptor getGetScanConfigMethod; + if ((getGetScanConfigMethod = WebSecurityScannerGrpc.getGetScanConfigMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getGetScanConfigMethod = WebSecurityScannerGrpc.getGetScanConfigMethod) == null) { + WebSecurityScannerGrpc.getGetScanConfigMethod = getGetScanConfigMethod = + io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetScanConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.GetScanConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("GetScanConfig")) + .build(); + } + } + } + return getGetScanConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getListScanConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListScanConfigs", + requestType = com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.class, + responseType = com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListScanConfigsMethod() { + io.grpc.MethodDescriptor getListScanConfigsMethod; + if ((getListScanConfigsMethod = WebSecurityScannerGrpc.getListScanConfigsMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getListScanConfigsMethod = WebSecurityScannerGrpc.getListScanConfigsMethod) == null) { + WebSecurityScannerGrpc.getListScanConfigsMethod = getListScanConfigsMethod = + io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListScanConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("ListScanConfigs")) + .build(); + } + } + } + return getListScanConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateScanConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateScanConfig", + requestType = com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.class, + responseType = com.google.cloud.websecurityscanner.v1.ScanConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateScanConfigMethod() { + io.grpc.MethodDescriptor getUpdateScanConfigMethod; + if ((getUpdateScanConfigMethod = WebSecurityScannerGrpc.getUpdateScanConfigMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getUpdateScanConfigMethod = WebSecurityScannerGrpc.getUpdateScanConfigMethod) == null) { + WebSecurityScannerGrpc.getUpdateScanConfigMethod = getUpdateScanConfigMethod = + io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateScanConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("UpdateScanConfig")) + .build(); + } + } + } + return getUpdateScanConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getStartScanRunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StartScanRun", + requestType = com.google.cloud.websecurityscanner.v1.StartScanRunRequest.class, + responseType = com.google.cloud.websecurityscanner.v1.ScanRun.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getStartScanRunMethod() { + io.grpc.MethodDescriptor getStartScanRunMethod; + if ((getStartScanRunMethod = WebSecurityScannerGrpc.getStartScanRunMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getStartScanRunMethod = WebSecurityScannerGrpc.getStartScanRunMethod) == null) { + WebSecurityScannerGrpc.getStartScanRunMethod = getStartScanRunMethod = + io.grpc.MethodDescriptor.