Class WebRiskServiceGrpc.WebRiskServiceStub

java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<WebRiskServiceGrpc.WebRiskServiceStub>
com.google.webrisk.v1.WebRiskServiceGrpc.WebRiskServiceStub
Enclosing class:
WebRiskServiceGrpc

public static final class WebRiskServiceGrpc.WebRiskServiceStub extends io.grpc.stub.AbstractAsyncStub<WebRiskServiceGrpc.WebRiskServiceStub>
A stub to allow clients to do asynchronous rpc calls to service WebRiskService.
 Web Risk API defines an interface to detect malicious URLs on your
 website and in client applications.
 
  • 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 Type
    Method
    Description
    build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
     
    void
    computeThreatListDiff(ComputeThreatListDiffRequest request, io.grpc.stub.StreamObserver<ComputeThreatListDiffResponse> responseObserver)
    Gets the most recent threat list diffs.
    void
    createSubmission(CreateSubmissionRequest request, io.grpc.stub.StreamObserver<Submission> responseObserver)
    Creates a Submission of a URI suspected of containing phishing content to be reviewed.
    void
    searchHashes(SearchHashesRequest request, io.grpc.stub.StreamObserver<SearchHashesResponse> responseObserver)
    Gets the full hashes that match the requested hash prefix.
    void
    searchUris(SearchUrisRequest request, io.grpc.stub.StreamObserver<SearchUrisResponse> responseObserver)
    This method is used to check whether a URI is on a given threatList.
    void
    submitUri(SubmitUriRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
    Submits a URI suspected of containing malicious content to be reviewed.

    Methods inherited from class io.grpc.stub.AbstractAsyncStub

    newStub, newStub

    Methods inherited from class io.grpc.stub.AbstractStub

    getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • build

      protected WebRiskServiceGrpc.WebRiskServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<WebRiskServiceGrpc.WebRiskServiceStub>
    • computeThreatListDiff

      public void computeThreatListDiff(ComputeThreatListDiffRequest request, io.grpc.stub.StreamObserver<ComputeThreatListDiffResponse> responseObserver)
       Gets the most recent threat list diffs. These diffs should be applied to
       a local database of hashes to keep it up-to-date. If the local database is
       empty or excessively out-of-date, a complete snapshot of the database will
       be returned. This Method only updates a single ThreatList at a time. To
       update multiple ThreatList databases, this method needs to be called once
       for each list.
       
    • searchUris

      public void searchUris(SearchUrisRequest request, io.grpc.stub.StreamObserver<SearchUrisResponse> responseObserver)
       This method is used to check whether a URI is on a given threatList.
       Multiple threatLists may be searched in a single query.
       The response will list all requested threatLists the URI was found to
       match. If the URI is not found on any of the requested ThreatList an
       empty response will be returned.
       
    • searchHashes

      public void searchHashes(SearchHashesRequest request, io.grpc.stub.StreamObserver<SearchHashesResponse> responseObserver)
       Gets the full hashes that match the requested hash prefix.
       This is used after a hash prefix is looked up in a threatList
       and there is a match. The client side threatList only holds partial hashes
       so the client must query this method to determine if there is a full
       hash match of a threat.
       
    • createSubmission

      public void createSubmission(CreateSubmissionRequest request, io.grpc.stub.StreamObserver<Submission> responseObserver)
       Creates a Submission of a URI suspected of containing phishing content to
       be reviewed. If the result verifies the existence of malicious phishing
       content, the site will be added to the [Google's Social Engineering
       lists](https://support.google.com/webmasters/answer/6350487/) in order to
       protect users that could get exposed to this threat in the future. Only
       allowlisted projects can use this method during Early Access. Please reach
       out to Sales or your customer engineer to obtain access.
       
    • submitUri

      public void submitUri(SubmitUriRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
       Submits a URI suspected of containing malicious content to be reviewed.
       Returns a google.longrunning.Operation which, once the review is complete,
       is updated with its result. You can use the [Pub/Sub API]
       (https://cloud.google.com/pubsub) to receive notifications for the returned
       Operation. If the result verifies the existence of malicious content, the
       site will be added to the [Google's Social Engineering lists]
       (https://support.google.com/webmasters/answer/6350487/) in order to
       protect users that could get exposed to this threat in the future. Only
       allowlisted projects can use this method during Early Access. Please reach
       out to Sales or your customer engineer to obtain access.