Class RecaptchaEnterpriseServiceGrpc.RecaptchaEnterpriseServiceBlockingV2Stub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<RecaptchaEnterpriseServiceGrpc.RecaptchaEnterpriseServiceBlockingV2Stub>
com.google.recaptchaenterprise.v1.RecaptchaEnterpriseServiceGrpc.RecaptchaEnterpriseServiceBlockingV2Stub
- Enclosing class:
- RecaptchaEnterpriseServiceGrpc
public static final class RecaptchaEnterpriseServiceGrpc.RecaptchaEnterpriseServiceBlockingV2Stub
extends io.grpc.stub.AbstractBlockingStub<RecaptchaEnterpriseServiceGrpc.RecaptchaEnterpriseServiceBlockingV2Stub>
A stub to allow clients to do synchronous 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 TypeMethodDescriptionaddIpOverride(AddIpOverrideRequest request) Adds an IP override to a key.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) createAssessment(CreateAssessmentRequest request) Creates an Assessment of the likelihood an event is legitimate.Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA Enterprise actions can be executed.createKey(CreateKeyRequest request) Creates a new reCAPTCHA Enterprise key.com.google.protobuf.EmptyDeletes the specified firewall policy.com.google.protobuf.EmptydeleteKey(DeleteKeyRequest request) Deletes the specified key.Returns the specified firewall policy.getKey(GetKeyRequest request) Returns the specified key.getMetrics(GetMetricsRequest request) Get some aggregated metrics for a Key.Returns the list of all firewall policies that belong to a project.listIpOverrides(ListIpOverridesRequest request) Lists all IP overrides for a key.listKeys(ListKeysRequest request) Returns the list of all keys that belong to a project.Get memberships in a group of related accounts.List groups of related accounts.migrateKey(MigrateKeyRequest request) Migrates an existing key from reCAPTCHA to reCAPTCHA Enterprise.removeIpOverride(RemoveIpOverrideRequest request) Removes an IP override from a key.Reorders all firewall policies.Returns the secret key related to the specified public key.Search group memberships related to a given account.Updates the specified firewall policy.updateKey(UpdateKeyRequest request) Updates the specified key.Methods inherited from class io.grpc.stub.AbstractBlockingStub
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.RecaptchaEnterpriseServiceBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<RecaptchaEnterpriseServiceGrpc.RecaptchaEnterpriseServiceBlockingV2Stub>
-
createAssessment
Creates an Assessment of the likelihood an event is legitimate.
- Throws:
io.grpc.StatusException
-
annotateAssessment
public AnnotateAssessmentResponse annotateAssessment(AnnotateAssessmentRequest request) throws io.grpc.StatusException Annotates a previously created Assessment to provide additional information on whether the event turned out to be authentic or fraudulent.
- Throws:
io.grpc.StatusException
-
createKey
Creates a new reCAPTCHA Enterprise key.
- Throws:
io.grpc.StatusException
-
listKeys
Returns the list of all keys that belong to a project.
- Throws:
io.grpc.StatusException
-
retrieveLegacySecretKey
public RetrieveLegacySecretKeyResponse retrieveLegacySecretKey(RetrieveLegacySecretKeyRequest request) throws io.grpc.StatusException 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.
- Throws:
io.grpc.StatusException
-
getKey
Returns the specified key.
- Throws:
io.grpc.StatusException
-
updateKey
Updates the specified key.
- Throws:
io.grpc.StatusException
-
deleteKey
Deletes the specified key.
- Throws:
io.grpc.StatusException
-
migrateKey
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.
- Throws:
io.grpc.StatusException
-
addIpOverride
public AddIpOverrideResponse addIpOverride(AddIpOverrideRequest request) throws io.grpc.StatusException 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.
- Throws:
io.grpc.StatusException
-
removeIpOverride
public RemoveIpOverrideResponse removeIpOverride(RemoveIpOverrideRequest request) throws io.grpc.StatusException 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.
- Throws:
io.grpc.StatusException
-
listIpOverrides
public ListIpOverridesResponse listIpOverrides(ListIpOverridesRequest request) throws io.grpc.StatusException Lists all IP overrides for a key.
- Throws:
io.grpc.StatusException
-
getMetrics
Get some aggregated metrics for a Key. This data can be used to build dashboards.
- Throws:
io.grpc.StatusException
-
createFirewallPolicy
public FirewallPolicy createFirewallPolicy(CreateFirewallPolicyRequest request) throws io.grpc.StatusException Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA Enterprise actions can be executed. A project may have a maximum of 1000 policies.
- Throws:
io.grpc.StatusException
-
listFirewallPolicies
public ListFirewallPoliciesResponse listFirewallPolicies(ListFirewallPoliciesRequest request) throws io.grpc.StatusException Returns the list of all firewall policies that belong to a project.
- Throws:
io.grpc.StatusException
-
getFirewallPolicy
public FirewallPolicy getFirewallPolicy(GetFirewallPolicyRequest request) throws io.grpc.StatusException Returns the specified firewall policy.
- Throws:
io.grpc.StatusException
-
updateFirewallPolicy
public FirewallPolicy updateFirewallPolicy(UpdateFirewallPolicyRequest request) throws io.grpc.StatusException Updates the specified firewall policy.
- Throws:
io.grpc.StatusException
-
deleteFirewallPolicy
public com.google.protobuf.Empty deleteFirewallPolicy(DeleteFirewallPolicyRequest request) throws io.grpc.StatusException Deletes the specified firewall policy.
- Throws:
io.grpc.StatusException
-
reorderFirewallPolicies
public ReorderFirewallPoliciesResponse reorderFirewallPolicies(ReorderFirewallPoliciesRequest request) throws io.grpc.StatusException Reorders all firewall policies.
- Throws:
io.grpc.StatusException
-
listRelatedAccountGroups
public ListRelatedAccountGroupsResponse listRelatedAccountGroups(ListRelatedAccountGroupsRequest request) throws io.grpc.StatusException List groups of related accounts.
- Throws:
io.grpc.StatusException
-
listRelatedAccountGroupMemberships
public ListRelatedAccountGroupMembershipsResponse listRelatedAccountGroupMemberships(ListRelatedAccountGroupMembershipsRequest request) throws io.grpc.StatusException Get memberships in a group of related accounts.
- Throws:
io.grpc.StatusException
-
searchRelatedAccountGroupMemberships
public SearchRelatedAccountGroupMembershipsResponse searchRelatedAccountGroupMemberships(SearchRelatedAccountGroupMembershipsRequest request) throws io.grpc.StatusException Search group memberships related to a given account.
- Throws:
io.grpc.StatusException
-