Class RecaptchaEnterpriseServiceConnection (2.16.0)

This interface defines virtual methods for each of the user-facing overload sets in RecaptchaEnterpriseServiceClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type RecaptchaEnterpriseServiceClient.

To create a concrete instance, see MakeRecaptchaEnterpriseServiceConnection().

For mocking, see recaptchaenterprise_v1_mocks::MockRecaptchaEnterpriseServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual CreateAssessment(google::cloud::recaptchaenterprise::v1::CreateAssessmentRequest const &)

Parameter
Name Description
request google::cloud::recaptchaenterprise::v1::CreateAssessmentRequest const &
Returns
Type Description
StatusOr< google::cloud::recaptchaenterprise::v1::Assessment >

virtual AnnotateAssessment(google::cloud::recaptchaenterprise::v1::AnnotateAssessmentRequest const &)

Parameter
Name Description
request google::cloud::recaptchaenterprise::v1::AnnotateAssessmentRequest const &
Returns
Type Description
StatusOr< google::cloud::recaptchaenterprise::v1::AnnotateAssessmentResponse >

virtual CreateKey(google::cloud::recaptchaenterprise::v1::CreateKeyRequest const &)

Parameter
Name Description
request google::cloud::recaptchaenterprise::v1::CreateKeyRequest const &
Returns
Type Description
StatusOr< google::cloud::recaptchaenterprise::v1::Key >

virtual ListKeys(google::cloud::recaptchaenterprise::v1::ListKeysRequest)

Parameter
Name Description
request google::cloud::recaptchaenterprise::v1::ListKeysRequest
Returns
Type Description
StreamRange< google::cloud::recaptchaenterprise::v1::Key >

virtual RetrieveLegacySecretKey(google::cloud::recaptchaenterprise::v1::RetrieveLegacySecretKeyRequest const &)

Parameter
Name Description
request google::cloud::recaptchaenterprise::v1::RetrieveLegacySecretKeyRequest const &
Returns
Type Description
StatusOr< google::cloud::recaptchaenterprise::v1::RetrieveLegacySecretKeyResponse >

virtual GetKey(google::cloud::recaptchaenterprise::v1::GetKeyRequest const &)

Parameter
Name Description
request google::cloud::recaptchaenterprise::v1::GetKeyRequest const &
Returns
Type Description
StatusOr< google::cloud::recaptchaenterprise::v1::Key >

virtual UpdateKey(google::cloud::recaptchaenterprise::v1::UpdateKeyRequest const &)

Parameter
Name Description
request google::cloud::recaptchaenterprise::v1::UpdateKeyRequest const &
Returns
Type Description
StatusOr< google::cloud::recaptchaenterprise::v1::Key >

virtual DeleteKey(google::cloud::recaptchaenterprise::v1::DeleteKeyRequest const &)

Parameter
Name Description
request google::cloud::recaptchaenterprise::v1::DeleteKeyRequest const &
Returns
Type Description
Status

virtual MigrateKey(google::cloud::recaptchaenterprise::v1::MigrateKeyRequest const &)

Parameter
Name Description
request google::cloud::recaptchaenterprise::v1::MigrateKeyRequest const &
Returns
Type Description
StatusOr< google::cloud::recaptchaenterprise::v1::Key >

virtual GetMetrics(google::cloud::recaptchaenterprise::v1::GetMetricsRequest const &)

Parameter
Name Description
request google::cloud::recaptchaenterprise::v1::GetMetricsRequest const &
Returns
Type Description
StatusOr< google::cloud::recaptchaenterprise::v1::Metrics >

virtual ListRelatedAccountGroups(google::cloud::recaptchaenterprise::v1::ListRelatedAccountGroupsRequest)

Parameter
Name Description
request google::cloud::recaptchaenterprise::v1::ListRelatedAccountGroupsRequest
Returns
Type Description
StreamRange< google::cloud::recaptchaenterprise::v1::RelatedAccountGroup >

virtual ListRelatedAccountGroupMemberships(google::cloud::recaptchaenterprise::v1::ListRelatedAccountGroupMembershipsRequest)

Parameter
Name Description
request google::cloud::recaptchaenterprise::v1::ListRelatedAccountGroupMembershipsRequest
Returns
Type Description
StreamRange< google::cloud::recaptchaenterprise::v1::RelatedAccountGroupMembership >

virtual SearchRelatedAccountGroupMemberships(google::cloud::recaptchaenterprise::v1::SearchRelatedAccountGroupMembershipsRequest)

Parameter
Name Description
request google::cloud::recaptchaenterprise::v1::SearchRelatedAccountGroupMembershipsRequest
Returns
Type Description
StreamRange< google::cloud::recaptchaenterprise::v1::RelatedAccountGroupMembership >