Beispiel #1
0
        /// <summary>
        /// Constructs a client wrapper for the WebRiskServiceV1Beta1 service, with the specified gRPC client and
        /// settings.
        /// </summary>
        /// <param name="grpcClient">The underlying gRPC client.</param>
        /// <param name="settings">The base <see cref="WebRiskServiceV1Beta1Settings"/> used within this client.</param>
        public WebRiskServiceV1Beta1ClientImpl(WebRiskServiceV1Beta1.WebRiskServiceV1Beta1Client grpcClient, WebRiskServiceV1Beta1Settings settings)
        {
            GrpcClient = grpcClient;
            WebRiskServiceV1Beta1Settings effectiveSettings = settings ?? WebRiskServiceV1Beta1Settings.GetDefault();
            gaxgrpc::ClientHelper         clientHelper      = new gaxgrpc::ClientHelper(effectiveSettings);

            _callComputeThreatListDiff = clientHelper.BuildApiCall <ComputeThreatListDiffRequest, ComputeThreatListDiffResponse>(grpcClient.ComputeThreatListDiffAsync, grpcClient.ComputeThreatListDiff, effectiveSettings.ComputeThreatListDiffSettings);
            Modify_ApiCall(ref _callComputeThreatListDiff);
            Modify_ComputeThreatListDiffApiCall(ref _callComputeThreatListDiff);
            _callSearchUris = clientHelper.BuildApiCall <SearchUrisRequest, SearchUrisResponse>(grpcClient.SearchUrisAsync, grpcClient.SearchUris, effectiveSettings.SearchUrisSettings);
            Modify_ApiCall(ref _callSearchUris);
            Modify_SearchUrisApiCall(ref _callSearchUris);
            _callSearchHashes = clientHelper.BuildApiCall <SearchHashesRequest, SearchHashesResponse>(grpcClient.SearchHashesAsync, grpcClient.SearchHashes, effectiveSettings.SearchHashesSettings);
            Modify_ApiCall(ref _callSearchHashes);
            Modify_SearchHashesApiCall(ref _callSearchHashes);
            OnConstruction(grpcClient, effectiveSettings, clientHelper);
        }