Class protos.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1 (3.0.8)

Represents a PhishingProtectionServiceV1Beta1

Inheritance

$protobuf.rpc.Service > protos.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1

Package

@google-cloud/phishing-protection

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new PhishingProtectionServiceV1Beta1 service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

create(rpcImpl, requestDelimited, responseDelimited)

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

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

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

reportPhishing(request, callback)

public reportPhishing(request: google.cloud.phishingprotection.v1beta1.IReportPhishingRequest, callback: google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1.ReportPhishingCallback): void;

Calls ReportPhishing.

Parameters
NameDescription
request google.cloud.phishingprotection.v1beta1.IReportPhishingRequest

ReportPhishingRequest message or plain object

callback google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1.ReportPhishingCallback

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

Returns
TypeDescription
void

reportPhishing(request)

public reportPhishing(request: google.cloud.phishingprotection.v1beta1.IReportPhishingRequest): Promise<google.cloud.phishingprotection.v1beta1.ReportPhishingResponse>;

Calls ReportPhishing.

Parameter
NameDescription
request google.cloud.phishingprotection.v1beta1.IReportPhishingRequest

ReportPhishingRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.phishingprotection.v1beta1.ReportPhishingResponse>

Promise