Class RecaptchaEnterpriseService.RecaptchaEnterpriseServiceBase (1.5.0)

[BindServiceMethod(typeof(RecaptchaEnterpriseService), "BindService")]
public abstract class RecaptchaEnterpriseServiceBase

Base class for server-side implementations of RecaptchaEnterpriseService

Inheritance

Object > RecaptchaEnterpriseService.RecaptchaEnterpriseServiceBase

Namespace

Google.Cloud.RecaptchaEnterprise.V1

Assembly

Google.Cloud.RecaptchaEnterprise.V1.dll

Methods

AnnotateAssessment(AnnotateAssessmentRequest, ServerCallContext)

public virtual Task<AnnotateAssessmentResponse> AnnotateAssessment(AnnotateAssessmentRequest request, ServerCallContext context)

Annotates a previously created Assessment to provide additional information on whether the event turned out to be authentic or fraudulent.

Parameters
NameDescription
requestAnnotateAssessmentRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<AnnotateAssessmentResponse>

The response to send back to the client (wrapped by a task).

CreateAssessment(CreateAssessmentRequest, ServerCallContext)

public virtual Task<Assessment> CreateAssessment(CreateAssessmentRequest request, ServerCallContext context)

Creates an Assessment of the likelihood an event is legitimate.

Parameters
NameDescription
requestCreateAssessmentRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Assessment>

The response to send back to the client (wrapped by a task).

CreateKey(CreateKeyRequest, ServerCallContext)

public virtual Task<Key> CreateKey(CreateKeyRequest request, ServerCallContext context)

Creates a new reCAPTCHA Enterprise key.

Parameters
NameDescription
requestCreateKeyRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Key>

The response to send back to the client (wrapped by a task).

DeleteKey(DeleteKeyRequest, ServerCallContext)

public virtual Task<Empty> DeleteKey(DeleteKeyRequest request, ServerCallContext context)

Deletes the specified key.

Parameters
NameDescription
requestDeleteKeyRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Empty>

The response to send back to the client (wrapped by a task).

GetKey(GetKeyRequest, ServerCallContext)

public virtual Task<Key> GetKey(GetKeyRequest request, ServerCallContext context)

Returns the specified key.

Parameters
NameDescription
requestGetKeyRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Key>

The response to send back to the client (wrapped by a task).

GetMetrics(GetMetricsRequest, ServerCallContext)

public virtual Task<Metrics> GetMetrics(GetMetricsRequest request, ServerCallContext context)

Get some aggregated metrics for a Key. This data can be used to build dashboards.

Parameters
NameDescription
requestGetMetricsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Metrics>

The response to send back to the client (wrapped by a task).

ListKeys(ListKeysRequest, ServerCallContext)

public virtual Task<ListKeysResponse> ListKeys(ListKeysRequest request, ServerCallContext context)

Returns the list of all keys that belong to a project.

Parameters
NameDescription
requestListKeysRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListKeysResponse>

The response to send back to the client (wrapped by a task).

ListRelatedAccountGroupMemberships(ListRelatedAccountGroupMembershipsRequest, ServerCallContext)

public virtual Task<ListRelatedAccountGroupMembershipsResponse> ListRelatedAccountGroupMemberships(ListRelatedAccountGroupMembershipsRequest request, ServerCallContext context)

Get the memberships in a group of related accounts.

Parameters
NameDescription
requestListRelatedAccountGroupMembershipsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListRelatedAccountGroupMembershipsResponse>

The response to send back to the client (wrapped by a task).

ListRelatedAccountGroups(ListRelatedAccountGroupsRequest, ServerCallContext)

public virtual Task<ListRelatedAccountGroupsResponse> ListRelatedAccountGroups(ListRelatedAccountGroupsRequest request, ServerCallContext context)

List groups of related accounts.

Parameters
NameDescription
requestListRelatedAccountGroupsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListRelatedAccountGroupsResponse>

The response to send back to the client (wrapped by a task).

MigrateKey(MigrateKeyRequest, ServerCallContext)

public virtual Task<Key> MigrateKey(MigrateKeyRequest request, ServerCallContext context)

Migrates an existing key from reCAPTCHA to reCAPTCHA Enterprise. Once a key is migrated, it can be used from either product. SiteVerify requests are billed as CreateAssessment calls. You must be authenticated as one of the current owners of the reCAPTCHA Site Key, and your user must have the reCAPTCHA Enterprise Admin IAM role in the destination project.

Parameters
NameDescription
requestMigrateKeyRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Key>

The response to send back to the client (wrapped by a task).

SearchRelatedAccountGroupMemberships(SearchRelatedAccountGroupMembershipsRequest, ServerCallContext)

public virtual Task<SearchRelatedAccountGroupMembershipsResponse> SearchRelatedAccountGroupMemberships(SearchRelatedAccountGroupMembershipsRequest request, ServerCallContext context)

Search group memberships related to a given account.

Parameters
NameDescription
requestSearchRelatedAccountGroupMembershipsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<SearchRelatedAccountGroupMembershipsResponse>

The response to send back to the client (wrapped by a task).

UpdateKey(UpdateKeyRequest, ServerCallContext)

public virtual Task<Key> UpdateKey(UpdateKeyRequest request, ServerCallContext context)

Updates the specified key.

Parameters
NameDescription
requestUpdateKeyRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Key>

The response to send back to the client (wrapped by a task).