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.
 
  • Method Details

    • build

      protected RecaptchaEnterpriseServiceGrpc.RecaptchaEnterpriseServiceBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<RecaptchaEnterpriseServiceGrpc.RecaptchaEnterpriseServiceBlockingV2Stub>
    • createAssessment

      public Assessment createAssessment(CreateAssessmentRequest request) throws io.grpc.StatusException
       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

      public Key createKey(CreateKeyRequest request) throws io.grpc.StatusException
       Creates a new reCAPTCHA Enterprise key.
       
      Throws:
      io.grpc.StatusException
    • listKeys

      public ListKeysResponse listKeys(ListKeysRequest request) throws io.grpc.StatusException
       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

      public Key getKey(GetKeyRequest request) throws io.grpc.StatusException
       Returns the specified key.
       
      Throws:
      io.grpc.StatusException
    • updateKey

      public Key updateKey(UpdateKeyRequest request) throws io.grpc.StatusException
       Updates the specified key.
       
      Throws:
      io.grpc.StatusException
    • deleteKey

      public com.google.protobuf.Empty deleteKey(DeleteKeyRequest request) throws io.grpc.StatusException
       Deletes the specified key.
       
      Throws:
      io.grpc.StatusException
    • migrateKey

      public Key migrateKey(MigrateKeyRequest request) throws io.grpc.StatusException
       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

      public Metrics getMetrics(GetMetricsRequest request) throws io.grpc.StatusException
       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