Class protos.google.cloud.webrisk.v1beta1.WebRiskServiceV1Beta1 (4.0.2)

Represents a WebRiskServiceV1Beta1

Inheritance

$protobuf.rpc.Service > protos.google.cloud.webrisk.v1beta1.WebRiskServiceV1Beta1

Package

@google-cloud/web-risk

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new WebRiskServiceV1Beta1 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.v1beta1.IComputeThreatListDiffRequest, callback: google.cloud.webrisk.v1beta1.WebRiskServiceV1Beta1.ComputeThreatListDiffCallback): void;

Calls ComputeThreatListDiff.

Parameters
NameDescription
request IComputeThreatListDiffRequest

ComputeThreatListDiffRequest message or plain object

callback ComputeThreatListDiffCallback

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

Returns
TypeDescription
void

computeThreatListDiff(request)

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

Calls ComputeThreatListDiff.

Parameter
NameDescription
request IComputeThreatListDiffRequest

ComputeThreatListDiffRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.webrisk.v1beta1.ComputeThreatListDiffResponse>

Promise

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): WebRiskServiceV1Beta1;

Creates new WebRiskServiceV1Beta1 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
WebRiskServiceV1Beta1

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

searchHashes(request, callback)

public searchHashes(request: google.cloud.webrisk.v1beta1.ISearchHashesRequest, callback: google.cloud.webrisk.v1beta1.WebRiskServiceV1Beta1.SearchHashesCallback): void;

Calls SearchHashes.

Parameters
NameDescription
request ISearchHashesRequest

SearchHashesRequest message or plain object

callback SearchHashesCallback

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

Returns
TypeDescription
void

searchHashes(request)

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

Calls SearchHashes.

Parameter
NameDescription
request ISearchHashesRequest

SearchHashesRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.webrisk.v1beta1.SearchHashesResponse>

Promise

searchUris(request, callback)

public searchUris(request: google.cloud.webrisk.v1beta1.ISearchUrisRequest, callback: google.cloud.webrisk.v1beta1.WebRiskServiceV1Beta1.SearchUrisCallback): void;

Calls SearchUris.

Parameters
NameDescription
request ISearchUrisRequest

SearchUrisRequest message or plain object

callback SearchUrisCallback

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

Returns
TypeDescription
void

searchUris(request)

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

Calls SearchUris.

Parameter
NameDescription
request ISearchUrisRequest

SearchUrisRequest message or plain object

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

Promise