Class RecaptchaEnterpriseServiceGrpc.RecaptchaEnterpriseServiceStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<RecaptchaEnterpriseServiceGrpc.RecaptchaEnterpriseServiceStub>
com.google.recaptchaenterprise.v1.RecaptchaEnterpriseServiceGrpc.RecaptchaEnterpriseServiceStub
- Enclosing class:
- RecaptchaEnterpriseServiceGrpc
public static final class RecaptchaEnterpriseServiceGrpc.RecaptchaEnterpriseServiceStub
extends io.grpc.stub.AbstractAsyncStub<RecaptchaEnterpriseServiceGrpc.RecaptchaEnterpriseServiceStub>
A stub to allow clients to do asynchronous rpc calls to service RecaptchaEnterpriseService.
Service to determine the likelihood an event is legitimate.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionvoidaddIpOverride(AddIpOverrideRequest request, io.grpc.stub.StreamObserver<AddIpOverrideResponse> responseObserver) Adds an IP override to a key.voidannotateAssessment(AnnotateAssessmentRequest request, io.grpc.stub.StreamObserver<AnnotateAssessmentResponse> responseObserver) Annotates a previously created Assessment to provide additional information on whether the event turned out to be authentic or fraudulent.build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) voidcreateAssessment(CreateAssessmentRequest request, io.grpc.stub.StreamObserver<Assessment> responseObserver) Creates an Assessment of the likelihood an event is legitimate.voidcreateFirewallPolicy(CreateFirewallPolicyRequest request, io.grpc.stub.StreamObserver<FirewallPolicy> responseObserver) Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA Enterprise actions can be executed.voidcreateKey(CreateKeyRequest request, io.grpc.stub.StreamObserver<Key> responseObserver) Creates a new reCAPTCHA Enterprise key.voiddeleteFirewallPolicy(DeleteFirewallPolicyRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) Deletes the specified firewall policy.voiddeleteKey(DeleteKeyRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) Deletes the specified key.voidgetFirewallPolicy(GetFirewallPolicyRequest request, io.grpc.stub.StreamObserver<FirewallPolicy> responseObserver) Returns the specified firewall policy.voidgetKey(GetKeyRequest request, io.grpc.stub.StreamObserver<Key> responseObserver) Returns the specified key.voidgetMetrics(GetMetricsRequest request, io.grpc.stub.StreamObserver<Metrics> responseObserver) Get some aggregated metrics for a Key.voidlistFirewallPolicies(ListFirewallPoliciesRequest request, io.grpc.stub.StreamObserver<ListFirewallPoliciesResponse> responseObserver) Returns the list of all firewall policies that belong to a project.voidlistIpOverrides(ListIpOverridesRequest request, io.grpc.stub.StreamObserver<ListIpOverridesResponse> responseObserver) Lists all IP overrides for a key.voidlistKeys(ListKeysRequest request, io.grpc.stub.StreamObserver<ListKeysResponse> responseObserver) Returns the list of all keys that belong to a project.voidlistRelatedAccountGroupMemberships(ListRelatedAccountGroupMembershipsRequest request, io.grpc.stub.StreamObserver<ListRelatedAccountGroupMembershipsResponse> responseObserver) Get memberships in a group of related accounts.voidlistRelatedAccountGroups(ListRelatedAccountGroupsRequest request, io.grpc.stub.StreamObserver<ListRelatedAccountGroupsResponse> responseObserver) List groups of related accounts.voidmigrateKey(MigrateKeyRequest request, io.grpc.stub.StreamObserver<Key> responseObserver) Migrates an existing key from reCAPTCHA to reCAPTCHA Enterprise.voidremoveIpOverride(RemoveIpOverrideRequest request, io.grpc.stub.StreamObserver<RemoveIpOverrideResponse> responseObserver) Removes an IP override from a key.voidreorderFirewallPolicies(ReorderFirewallPoliciesRequest request, io.grpc.stub.StreamObserver<ReorderFirewallPoliciesResponse> responseObserver) Reorders all firewall policies.voidretrieveLegacySecretKey(RetrieveLegacySecretKeyRequest request, io.grpc.stub.StreamObserver<RetrieveLegacySecretKeyResponse> responseObserver) Returns the secret key related to the specified public key.voidsearchRelatedAccountGroupMemberships(SearchRelatedAccountGroupMembershipsRequest request, io.grpc.stub.StreamObserver<SearchRelatedAccountGroupMembershipsResponse> responseObserver) Search group memberships related to a given account.voidupdateFirewallPolicy(UpdateFirewallPolicyRequest request, io.grpc.stub.StreamObserver<FirewallPolicy> responseObserver) Updates the specified firewall policy.voidupdateKey(UpdateKeyRequest request, io.grpc.stub.StreamObserver<Key> responseObserver) Updates the specified key.Methods inherited from class io.grpc.stub.AbstractAsyncStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected RecaptchaEnterpriseServiceGrpc.RecaptchaEnterpriseServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<RecaptchaEnterpriseServiceGrpc.RecaptchaEnterpriseServiceStub>
-
createAssessment
public void createAssessment(CreateAssessmentRequest request, io.grpc.stub.StreamObserver<Assessment> responseObserver) Creates an Assessment of the likelihood an event is legitimate.
-
annotateAssessment
public void annotateAssessment(AnnotateAssessmentRequest request, io.grpc.stub.StreamObserver<AnnotateAssessmentResponse> responseObserver) Annotates a previously created Assessment to provide additional information on whether the event turned out to be authentic or fraudulent.
-
createKey
Creates a new reCAPTCHA Enterprise key.
-
listKeys
public void listKeys(ListKeysRequest request, io.grpc.stub.StreamObserver<ListKeysResponse> responseObserver) Returns the list of all keys that belong to a project.
-
retrieveLegacySecretKey
public void retrieveLegacySecretKey(RetrieveLegacySecretKeyRequest request, io.grpc.stub.StreamObserver<RetrieveLegacySecretKeyResponse> responseObserver) Returns the secret key related to the specified public key. You must use the legacy secret key only in a 3rd party integration with legacy reCAPTCHA.
-
getKey
Returns the specified key.
-
updateKey
Updates the specified key.
-
deleteKey
public void deleteKey(DeleteKeyRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) Deletes the specified key.
-
migrateKey
public void migrateKey(MigrateKeyRequest request, io.grpc.stub.StreamObserver<Key> responseObserver) 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 Key, and your user must have the reCAPTCHA Enterprise Admin IAM role in the destination project.
-
addIpOverride
public void addIpOverride(AddIpOverrideRequest request, io.grpc.stub.StreamObserver<AddIpOverrideResponse> responseObserver) Adds an IP override to a key. The following restrictions hold: * The maximum number of IP overrides per key is 1000. * For any conflict (such as IP already exists or IP part of an existing IP range), an error is returned.
-
removeIpOverride
public void removeIpOverride(RemoveIpOverrideRequest request, io.grpc.stub.StreamObserver<RemoveIpOverrideResponse> responseObserver) Removes an IP override from a key. The following restrictions hold: * If the IP isn't found in an existing IP override, a `NOT_FOUND` error is returned. * If the IP is found in an existing IP override, but the override type does not match, a `NOT_FOUND` error is returned.
-
listIpOverrides
public void listIpOverrides(ListIpOverridesRequest request, io.grpc.stub.StreamObserver<ListIpOverridesResponse> responseObserver) Lists all IP overrides for a key.
-
getMetrics
public void getMetrics(GetMetricsRequest request, io.grpc.stub.StreamObserver<Metrics> responseObserver) Get some aggregated metrics for a Key. This data can be used to build dashboards.
-
createFirewallPolicy
public void createFirewallPolicy(CreateFirewallPolicyRequest request, io.grpc.stub.StreamObserver<FirewallPolicy> responseObserver) Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA Enterprise actions can be executed. A project may have a maximum of 1000 policies.
-
listFirewallPolicies
public void listFirewallPolicies(ListFirewallPoliciesRequest request, io.grpc.stub.StreamObserver<ListFirewallPoliciesResponse> responseObserver) Returns the list of all firewall policies that belong to a project.
-
getFirewallPolicy
public void getFirewallPolicy(GetFirewallPolicyRequest request, io.grpc.stub.StreamObserver<FirewallPolicy> responseObserver) Returns the specified firewall policy.
-
updateFirewallPolicy
public void updateFirewallPolicy(UpdateFirewallPolicyRequest request, io.grpc.stub.StreamObserver<FirewallPolicy> responseObserver) Updates the specified firewall policy.
-
deleteFirewallPolicy
public void deleteFirewallPolicy(DeleteFirewallPolicyRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) Deletes the specified firewall policy.
-
reorderFirewallPolicies
public void reorderFirewallPolicies(ReorderFirewallPoliciesRequest request, io.grpc.stub.StreamObserver<ReorderFirewallPoliciesResponse> responseObserver) Reorders all firewall policies.
-
listRelatedAccountGroups
public void listRelatedAccountGroups(ListRelatedAccountGroupsRequest request, io.grpc.stub.StreamObserver<ListRelatedAccountGroupsResponse> responseObserver) List groups of related accounts.
-
listRelatedAccountGroupMemberships
public void listRelatedAccountGroupMemberships(ListRelatedAccountGroupMembershipsRequest request, io.grpc.stub.StreamObserver<ListRelatedAccountGroupMembershipsResponse> responseObserver) Get memberships in a group of related accounts.
-
searchRelatedAccountGroupMemberships
public void searchRelatedAccountGroupMemberships(SearchRelatedAccountGroupMembershipsRequest request, io.grpc.stub.StreamObserver<SearchRelatedAccountGroupMembershipsResponse> responseObserver) Search group memberships related to a given account.
-