Constructor
new PhishingProtectionServiceV1Beta1(rpcImpl, requestDelimitedopt, responseDelimitedopt)
Constructs a new PhishingProtectionServiceV1Beta1 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
reportPhishing(request, callback) → {undefined}
Calls ReportPhishing.
Parameters:
Name | Type | Description |
---|---|---|
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:
Type | Description |
---|---|
undefined |
reportPhishing(request) → {Promise.<google.cloud.phishingprotection.v1beta1.ReportPhishingResponse>}
Calls ReportPhishing.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.phishingprotection.v1beta1.IReportPhishingRequest |
ReportPhishingRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.phishingprotection.v1beta1.ReportPhishingResponse> |
Promise |
(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {PhishingProtectionServiceV1Beta1}
Creates new PhishingProtectionServiceV1Beta1 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 |
---|---|
PhishingProtectionServiceV1Beta1 |
RPC service. Useful where requests and/or responses are streamed. |
Type Definitions
ReportPhishingCallback(error, responseopt)
Callback as used by reportPhishing.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.phishingprotection.v1beta1.ReportPhishingResponse |
<optional> |
ReportPhishingResponse |