Represents a WebRiskService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.webrisk.v1.WebRiskServicePackage
@google-cloud/web-risk!Constructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new WebRiskService service.
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Methods
computeThreatListDiff(request, callback)
public computeThreatListDiff(request: google.cloud.webrisk.v1.IComputeThreatListDiffRequest, callback: google.cloud.webrisk.v1.WebRiskService.ComputeThreatListDiffCallback): void;
Calls ComputeThreatListDiff.
Name | Description |
request |
IComputeThreatListDiffRequest
ComputeThreatListDiffRequest message or plain object |
callback |
google.cloud.webrisk.v1.WebRiskService.ComputeThreatListDiffCallback
Node-style callback called with the error, if any, and ComputeThreatListDiffResponse |
Type | Description |
void |
computeThreatListDiff(request)
public computeThreatListDiff(request: google.cloud.webrisk.v1.IComputeThreatListDiffRequest): Promise<google.cloud.webrisk.v1.ComputeThreatListDiffResponse>;
Calls ComputeThreatListDiff.
Name | Description |
request |
IComputeThreatListDiffRequest
ComputeThreatListDiffRequest message or plain object |
Type | Description |
Promise<google.cloud.webrisk.v1.ComputeThreatListDiffResponse> | Promise |
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): WebRiskService;
Creates new WebRiskService service using the specified rpc implementation.
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Type | Description |
WebRiskService | RPC service. Useful where requests and/or responses are streamed. |
createSubmission(request, callback)
public createSubmission(request: google.cloud.webrisk.v1.ICreateSubmissionRequest, callback: google.cloud.webrisk.v1.WebRiskService.CreateSubmissionCallback): void;
Calls CreateSubmission.
Name | Description |
request |
ICreateSubmissionRequest
CreateSubmissionRequest message or plain object |
callback |
google.cloud.webrisk.v1.WebRiskService.CreateSubmissionCallback
Node-style callback called with the error, if any, and Submission |
Type | Description |
void |
createSubmission(request)
public createSubmission(request: google.cloud.webrisk.v1.ICreateSubmissionRequest): Promise<google.cloud.webrisk.v1.Submission>;
Calls CreateSubmission.
Name | Description |
request |
ICreateSubmissionRequest
CreateSubmissionRequest message or plain object |
Type | Description |
Promise<google.cloud.webrisk.v1.Submission> | Promise |
searchHashes(request, callback)
public searchHashes(request: google.cloud.webrisk.v1.ISearchHashesRequest, callback: google.cloud.webrisk.v1.WebRiskService.SearchHashesCallback): void;
Calls SearchHashes.
Name | Description |
request |
ISearchHashesRequest
SearchHashesRequest message or plain object |
callback |
google.cloud.webrisk.v1.WebRiskService.SearchHashesCallback
Node-style callback called with the error, if any, and SearchHashesResponse |
Type | Description |
void |
searchHashes(request)
public searchHashes(request: google.cloud.webrisk.v1.ISearchHashesRequest): Promise<google.cloud.webrisk.v1.SearchHashesResponse>;
Calls SearchHashes.
Name | Description |
request |
ISearchHashesRequest
SearchHashesRequest message or plain object |
Type | Description |
Promise<google.cloud.webrisk.v1.SearchHashesResponse> | Promise |
searchUris(request, callback)
public searchUris(request: google.cloud.webrisk.v1.ISearchUrisRequest, callback: google.cloud.webrisk.v1.WebRiskService.SearchUrisCallback): void;
Calls SearchUris.
Name | Description |
request |
ISearchUrisRequest
SearchUrisRequest message or plain object |
callback |
google.cloud.webrisk.v1.WebRiskService.SearchUrisCallback
Node-style callback called with the error, if any, and SearchUrisResponse |
Type | Description |
void |
searchUris(request)
public searchUris(request: google.cloud.webrisk.v1.ISearchUrisRequest): Promise<google.cloud.webrisk.v1.SearchUrisResponse>;
Calls SearchUris.
Name | Description |
request |
ISearchUrisRequest
SearchUrisRequest message or plain object |
Type | Description |
Promise<google.cloud.webrisk.v1.SearchUrisResponse> | Promise |