WebRiskService

google.cloud.webrisk.v1. WebRiskService

Represents a WebRiskService

Constructor

new WebRiskService(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new WebRiskService service.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Extends

  • $protobuf.rpc.Service

Methods

computeThreatListDiff(request, callback) → {undefined}

Calls ComputeThreatListDiff.

Parameters:
Name Type Description
request google.cloud.webrisk.v1.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
undefined

computeThreatListDiff(request) → {Promise.<google.cloud.webrisk.v1.ComputeThreatListDiffResponse>}

Calls ComputeThreatListDiff.

Parameters:
Name Type Description
request google.cloud.webrisk.v1.IComputeThreatListDiffRequest

ComputeThreatListDiffRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.webrisk.v1.ComputeThreatListDiffResponse>

Promise

createSubmission(request, callback) → {undefined}

Calls CreateSubmission.

Parameters:
Name Type 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
undefined

createSubmission(request) → {Promise.<google.cloud.webrisk.v1.Submission>}

Calls CreateSubmission.

Parameters:
Name Type 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) → {undefined}

Calls SearchHashes.

Parameters:
Name Type 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
undefined

searchHashes(request) → {Promise.<google.cloud.webrisk.v1.SearchHashesResponse>}

Calls SearchHashes.

Parameters:
Name Type 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) → {undefined}

Calls SearchUris.

Parameters:
Name Type 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
undefined

searchUris(request) → {Promise.<google.cloud.webrisk.v1.SearchUrisResponse>}

Calls SearchUris.

Parameters:
Name Type Description
request google.cloud.webrisk.v1.ISearchUrisRequest

SearchUrisRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.webrisk.v1.SearchUrisResponse>

Promise

submitUri(request, callback) → {undefined}

Calls SubmitUri.

Parameters:
Name Type Description
request google.cloud.webrisk.v1.ISubmitUriRequest

SubmitUriRequest message or plain object

callback google.cloud.webrisk.v1.WebRiskService.SubmitUriCallback

Node-style callback called with the error, if any, and Operation

Returns:
Type Description
undefined

submitUri(request) → {Promise.<google.longrunning.Operation>}

Calls SubmitUri.

Parameters:
Name Type Description
request google.cloud.webrisk.v1.ISubmitUriRequest

SubmitUriRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {WebRiskService}

Creates new WebRiskService service using the specified rpc implementation.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Returns:
Type Description
WebRiskService

RPC service. Useful where requests and/or responses are streamed.

Type Definitions

ComputeThreatListDiffCallback(error, responseopt)

Callback as used by computeThreatListDiff.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.webrisk.v1.ComputeThreatListDiffResponse <optional>

ComputeThreatListDiffResponse

CreateSubmissionCallback(error, responseopt)

Callback as used by createSubmission.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.webrisk.v1.Submission <optional>

Submission

SearchHashesCallback(error, responseopt)

Callback as used by searchHashes.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.webrisk.v1.SearchHashesResponse <optional>

SearchHashesResponse

SearchUrisCallback(error, responseopt)

Callback as used by searchUris.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.webrisk.v1.SearchUrisResponse <optional>

SearchUrisResponse

SubmitUriCallback(error, responseopt)

Callback as used by submitUri.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation