Represents a PhishingProtectionServiceV1Beta1
Inheritance
$protobuf.rpc.Service > protos.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Package
@google-cloud/phishing-protectionConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new PhishingProtectionServiceV1Beta1 service.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
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 | |
---|---|
Type | Description |
void |
reportPhishing(request)
public reportPhishing(request: google.cloud.phishingprotection.v1beta1.IReportPhishingRequest): Promise<google.cloud.phishingprotection.v1beta1.ReportPhishingResponse>;
Calls ReportPhishing.
Parameter | |
---|---|
Name | Description |
request |
IReportPhishingRequest
ReportPhishingRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.phishingprotection.v1beta1.ReportPhishingResponse> | Promise |