public class PhishingProtectionServiceV1Beta1.PhishingProtectionServiceV1Beta1Client : ClientBase<PhishingProtectionServiceV1Beta1.PhishingProtectionServiceV1Beta1Client>
Reference documentation and code samples for the Cloud Phishing Protection v1beta1 API class PhishingProtectionServiceV1Beta1.PhishingProtectionServiceV1Beta1Client.
Client for PhishingProtectionServiceV1Beta1
Inheritance
object > ClientBase > ClientBasePhishingProtectionServiceV1Beta1PhishingProtectionServiceV1Beta1Client > PhishingProtectionServiceV1Beta1.PhishingProtectionServiceV1Beta1ClientNamespace
Google.Cloud.PhishingProtection.V1Beta1Assembly
Google.Cloud.PhishingProtection.V1Beta1.dll
Constructors
PhishingProtectionServiceV1Beta1Client()
protected PhishingProtectionServiceV1Beta1Client()
Protected parameterless constructor to allow creation of test doubles.
PhishingProtectionServiceV1Beta1Client(CallInvoker)
public PhishingProtectionServiceV1Beta1Client(CallInvoker callInvoker)
Creates a new client for PhishingProtectionServiceV1Beta1 that uses a custom CallInvoker
.
Parameter | |
---|---|
Name | Description |
callInvoker |
CallInvoker The callInvoker to use to make remote calls. |
PhishingProtectionServiceV1Beta1Client(ChannelBase)
public PhishingProtectionServiceV1Beta1Client(ChannelBase channel)
Creates a new client for PhishingProtectionServiceV1Beta1
Parameter | |
---|---|
Name | Description |
channel |
ChannelBase The channel to use to make remote calls. |
PhishingProtectionServiceV1Beta1Client(ClientBaseConfiguration)
protected PhishingProtectionServiceV1Beta1Client(ClientBase.ClientBaseConfiguration configuration)
Protected constructor to allow creation of configured clients.
Parameter | |
---|---|
Name | Description |
configuration |
ClientBaseClientBaseConfiguration The client configuration. |
Methods
NewInstance(ClientBaseConfiguration)
protected override PhishingProtectionServiceV1Beta1.PhishingProtectionServiceV1Beta1Client NewInstance(ClientBase.ClientBaseConfiguration configuration)
Creates a new instance of client from given ClientBaseConfiguration
.
Parameter | |
---|---|
Name | Description |
configuration |
ClientBaseClientBaseConfiguration |
Returns | |
---|---|
Type | Description |
PhishingProtectionServiceV1Beta1PhishingProtectionServiceV1Beta1Client |
ReportPhishing(ReportPhishingRequest, CallOptions)
public virtual ReportPhishingResponse ReportPhishing(ReportPhishingRequest request, CallOptions options)
Reports a URI suspected of containing phishing content to be reviewed. Once the report review is complete, its result can be found in the Cloud Security Command Center findings dashboard for Phishing Protection. If the result verifies the existence of malicious phishing content, the site will be added the to Google's Social Engineering lists in order to protect users that could get exposed to this threat in the future.
Parameters | |
---|---|
Name | Description |
request |
ReportPhishingRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
ReportPhishingResponse |
The response received from the server. |
ReportPhishing(ReportPhishingRequest, Metadata, DateTime?, CancellationToken)
public virtual ReportPhishingResponse ReportPhishing(ReportPhishingRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Reports a URI suspected of containing phishing content to be reviewed. Once the report review is complete, its result can be found in the Cloud Security Command Center findings dashboard for Phishing Protection. If the result verifies the existence of malicious phishing content, the site will be added the to Google's Social Engineering lists in order to protect users that could get exposed to this threat in the future.
Parameters | |
---|---|
Name | Description |
request |
ReportPhishingRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
ReportPhishingResponse |
The response received from the server. |
ReportPhishingAsync(ReportPhishingRequest, CallOptions)
public virtual AsyncUnaryCall<ReportPhishingResponse> ReportPhishingAsync(ReportPhishingRequest request, CallOptions options)
Reports a URI suspected of containing phishing content to be reviewed. Once the report review is complete, its result can be found in the Cloud Security Command Center findings dashboard for Phishing Protection. If the result verifies the existence of malicious phishing content, the site will be added the to Google's Social Engineering lists in order to protect users that could get exposed to this threat in the future.
Parameters | |
---|---|
Name | Description |
request |
ReportPhishingRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallReportPhishingResponse |
The call object. |
ReportPhishingAsync(ReportPhishingRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<ReportPhishingResponse> ReportPhishingAsync(ReportPhishingRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Reports a URI suspected of containing phishing content to be reviewed. Once the report review is complete, its result can be found in the Cloud Security Command Center findings dashboard for Phishing Protection. If the result verifies the existence of malicious phishing content, the site will be added the to Google's Social Engineering lists in order to protect users that could get exposed to this threat in the future.
Parameters | |
---|---|
Name | Description |
request |
ReportPhishingRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallReportPhishingResponse |
The call object. |