Package com.google.cloud.webrisk.v1.stub
Class GrpcWebRiskServiceStub
- java.lang.Object
-
- com.google.cloud.webrisk.v1.stub.WebRiskServiceStub
-
- com.google.cloud.webrisk.v1.stub.GrpcWebRiskServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") public class GrpcWebRiskServiceStub extends WebRiskServiceStub
gRPC stub implementation for the WebRiskService service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GrpcWebRiskServiceStub(WebRiskServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcWebRiskServiceStub, using the given settings.protected
GrpcWebRiskServiceStub(WebRiskServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcWebRiskServiceStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
awaitTermination(long duration, TimeUnit unit)
void
close()
com.google.api.gax.rpc.UnaryCallable<ComputeThreatListDiffRequest,ComputeThreatListDiffResponse>
computeThreatListDiffCallable()
static GrpcWebRiskServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static GrpcWebRiskServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
static GrpcWebRiskServiceStub
create(WebRiskServiceStubSettings settings)
com.google.api.gax.rpc.UnaryCallable<CreateSubmissionRequest,Submission>
createSubmissionCallable()
com.google.longrunning.stub.GrpcOperationsStub
getOperationsStub()
boolean
isShutdown()
boolean
isTerminated()
com.google.api.gax.rpc.UnaryCallable<SearchHashesRequest,SearchHashesResponse>
searchHashesCallable()
com.google.api.gax.rpc.UnaryCallable<SearchUrisRequest,SearchUrisResponse>
searchUrisCallable()
void
shutdown()
void
shutdownNow()
com.google.api.gax.rpc.UnaryCallable<SubmitUriRequest,com.google.longrunning.Operation>
submitUriCallable()
com.google.api.gax.rpc.OperationCallable<SubmitUriRequest,Submission,SubmitUriMetadata>
submitUriOperationCallable()
-
Methods inherited from class com.google.cloud.webrisk.v1.stub.WebRiskServiceStub
getHttpJsonOperationsStub
-
-
-
-
Constructor Detail
-
GrpcWebRiskServiceStub
protected GrpcWebRiskServiceStub(WebRiskServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcWebRiskServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
GrpcWebRiskServiceStub
protected GrpcWebRiskServiceStub(WebRiskServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcWebRiskServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
-
Method Detail
-
create
public static final GrpcWebRiskServiceStub create(WebRiskServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcWebRiskServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcWebRiskServiceStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
- Overrides:
getOperationsStub
in classWebRiskServiceStub
-
computeThreatListDiffCallable
public com.google.api.gax.rpc.UnaryCallable<ComputeThreatListDiffRequest,ComputeThreatListDiffResponse> computeThreatListDiffCallable()
- Overrides:
computeThreatListDiffCallable
in classWebRiskServiceStub
-
searchUrisCallable
public com.google.api.gax.rpc.UnaryCallable<SearchUrisRequest,SearchUrisResponse> searchUrisCallable()
- Overrides:
searchUrisCallable
in classWebRiskServiceStub
-
searchHashesCallable
public com.google.api.gax.rpc.UnaryCallable<SearchHashesRequest,SearchHashesResponse> searchHashesCallable()
- Overrides:
searchHashesCallable
in classWebRiskServiceStub
-
createSubmissionCallable
public com.google.api.gax.rpc.UnaryCallable<CreateSubmissionRequest,Submission> createSubmissionCallable()
- Overrides:
createSubmissionCallable
in classWebRiskServiceStub
-
submitUriCallable
public com.google.api.gax.rpc.UnaryCallable<SubmitUriRequest,com.google.longrunning.Operation> submitUriCallable()
- Overrides:
submitUriCallable
in classWebRiskServiceStub
-
submitUriOperationCallable
public com.google.api.gax.rpc.OperationCallable<SubmitUriRequest,Submission,SubmitUriMetadata> submitUriOperationCallable()
- Overrides:
submitUriOperationCallable
in classWebRiskServiceStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classWebRiskServiceStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
- Throws:
InterruptedException
-
-