# Generated by the protocol buffer compiler.  DO NOT EDIT!
# Source: google/cloud/websecurityscanner/v1/web_security_scanner.proto for package 'Google.Cloud.WebSecurityScanner.V1'
# Original file comments:
# 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
#
#     http://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.
#

require 'grpc'
require 'google/cloud/websecurityscanner/v1/web_security_scanner_pb'

module Google
  module Cloud
    module WebSecurityScanner
      module V1
        module WebSecurityScanner
          # 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.
          class Service

            include ::GRPC::GenericService

            self.marshal_class_method = :encode
            self.unmarshal_class_method = :decode
            self.service_name = 'google.cloud.websecurityscanner.v1.WebSecurityScanner'

            # Creates a new ScanConfig.
            rpc :CreateScanConfig, ::Google::Cloud::WebSecurityScanner::V1::CreateScanConfigRequest, ::Google::Cloud::WebSecurityScanner::V1::ScanConfig
            # Deletes an existing ScanConfig and its child resources.
            rpc :DeleteScanConfig, ::Google::Cloud::WebSecurityScanner::V1::DeleteScanConfigRequest, ::Google::Protobuf::Empty
            # Gets a ScanConfig.
            rpc :GetScanConfig, ::Google::Cloud::WebSecurityScanner::V1::GetScanConfigRequest, ::Google::Cloud::WebSecurityScanner::V1::ScanConfig
            # Lists ScanConfigs under a given project.
            rpc :ListScanConfigs, ::Google::Cloud::WebSecurityScanner::V1::ListScanConfigsRequest, ::Google::Cloud::WebSecurityScanner::V1::ListScanConfigsResponse
            # Updates a ScanConfig. This method support partial update of a ScanConfig.
            rpc :UpdateScanConfig, ::Google::Cloud::WebSecurityScanner::V1::UpdateScanConfigRequest, ::Google::Cloud::WebSecurityScanner::V1::ScanConfig
            # Start a ScanRun according to the given ScanConfig.
            rpc :StartScanRun, ::Google::Cloud::WebSecurityScanner::V1::StartScanRunRequest, ::Google::Cloud::WebSecurityScanner::V1::ScanRun
            # Gets a ScanRun.
            rpc :GetScanRun, ::Google::Cloud::WebSecurityScanner::V1::GetScanRunRequest, ::Google::Cloud::WebSecurityScanner::V1::ScanRun
            # Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
            # stop time.
            rpc :ListScanRuns, ::Google::Cloud::WebSecurityScanner::V1::ListScanRunsRequest, ::Google::Cloud::WebSecurityScanner::V1::ListScanRunsResponse
            # Stops a ScanRun. The stopped ScanRun is returned.
            rpc :StopScanRun, ::Google::Cloud::WebSecurityScanner::V1::StopScanRunRequest, ::Google::Cloud::WebSecurityScanner::V1::ScanRun
            # List CrawledUrls under a given ScanRun.
            rpc :ListCrawledUrls, ::Google::Cloud::WebSecurityScanner::V1::ListCrawledUrlsRequest, ::Google::Cloud::WebSecurityScanner::V1::ListCrawledUrlsResponse
            # Gets a Finding.
            rpc :GetFinding, ::Google::Cloud::WebSecurityScanner::V1::GetFindingRequest, ::Google::Cloud::WebSecurityScanner::V1::Finding
            # List Findings under a given ScanRun.
            rpc :ListFindings, ::Google::Cloud::WebSecurityScanner::V1::ListFindingsRequest, ::Google::Cloud::WebSecurityScanner::V1::ListFindingsResponse
            # List all FindingTypeStats under a given ScanRun.
            rpc :ListFindingTypeStats, ::Google::Cloud::WebSecurityScanner::V1::ListFindingTypeStatsRequest, ::Google::Cloud::WebSecurityScanner::V1::ListFindingTypeStatsResponse
          end

          Stub = Service.rpc_stub_class
        end
      end
    end
  end
end
