Class protos.google.cloud.webrisk.v1.WebRiskService (3.2.1)

Represents a WebRiskService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.webrisk.v1.WebRiskService

Package

@google-cloud/web-risk

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new WebRiskService service.

Parameters
NameDescription
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
NameDescription
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
TypeDescription
void

computeThreatListDiff(request)

public computeThreatListDiff(request: google.cloud.webrisk.v1.IComputeThreatListDiffRequest): Promise<google.cloud.webrisk.v1.ComputeThreatListDiffResponse>;

Calls ComputeThreatListDiff.

Parameter
NameDescription
request IComputeThreatListDiffRequest

ComputeThreatListDiffRequest message or plain object

Returns
TypeDescription
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
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
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
NameDescription
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
TypeDescription
void

createSubmission(request)

public createSubmission(request: google.cloud.webrisk.v1.ICreateSubmissionRequest): Promise<google.cloud.webrisk.v1.Submission>;

Calls CreateSubmission.

Parameter
NameDescription
request google.cloud.webrisk.v1.ICreateSubmissionRequest

CreateSubmissionRequest message or plain object

Returns
TypeDescription
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
NameDescription
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
TypeDescription
void

searchHashes(request)

public searchHashes(request: google.cloud.webrisk.v1.ISearchHashesRequest): Promise<google.cloud.webrisk.v1.SearchHashesResponse>;

Calls SearchHashes.

Parameter
NameDescription
request google.cloud.webrisk.v1.ISearchHashesRequest

SearchHashesRequest message or plain object

Returns
TypeDescription
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
NameDescription
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
TypeDescription
void

searchUris(request)

public searchUris(request: google.cloud.webrisk.v1.ISearchUrisRequest): Promise<google.cloud.webrisk.v1.SearchUrisResponse>;

Calls SearchUris.

Parameter
NameDescription
request google.cloud.webrisk.v1.ISearchUrisRequest

SearchUrisRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.webrisk.v1.SearchUrisResponse>

Promise