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