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 protectedGrpcWebRiskServiceStub(WebRiskServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of GrpcWebRiskServiceStub, using the given settings.protectedGrpcWebRiskServiceStub(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 booleanawaitTermination(long duration, TimeUnit unit)voidclose()com.google.api.gax.rpc.UnaryCallable<ComputeThreatListDiffRequest,ComputeThreatListDiffResponse>computeThreatListDiffCallable()static GrpcWebRiskServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static GrpcWebRiskServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)static GrpcWebRiskServiceStubcreate(WebRiskServiceStubSettings settings)com.google.api.gax.rpc.UnaryCallable<CreateSubmissionRequest,Submission>createSubmissionCallable()com.google.longrunning.stub.GrpcOperationsStubgetOperationsStub()booleanisShutdown()booleanisTerminated()com.google.api.gax.rpc.UnaryCallable<SearchHashesRequest,SearchHashesResponse>searchHashesCallable()com.google.api.gax.rpc.UnaryCallable<SearchUrisRequest,SearchUrisResponse>searchUrisCallable()voidshutdown()voidshutdownNow()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:
getOperationsStubin classWebRiskServiceStub
-
computeThreatListDiffCallable
public com.google.api.gax.rpc.UnaryCallable<ComputeThreatListDiffRequest,ComputeThreatListDiffResponse> computeThreatListDiffCallable()
- Overrides:
computeThreatListDiffCallablein classWebRiskServiceStub
-
searchUrisCallable
public com.google.api.gax.rpc.UnaryCallable<SearchUrisRequest,SearchUrisResponse> searchUrisCallable()
- Overrides:
searchUrisCallablein classWebRiskServiceStub
-
searchHashesCallable
public com.google.api.gax.rpc.UnaryCallable<SearchHashesRequest,SearchHashesResponse> searchHashesCallable()
- Overrides:
searchHashesCallablein classWebRiskServiceStub
-
createSubmissionCallable
public com.google.api.gax.rpc.UnaryCallable<CreateSubmissionRequest,Submission> createSubmissionCallable()
- Overrides:
createSubmissionCallablein classWebRiskServiceStub
-
submitUriCallable
public com.google.api.gax.rpc.UnaryCallable<SubmitUriRequest,com.google.longrunning.Operation> submitUriCallable()
- Overrides:
submitUriCallablein classWebRiskServiceStub
-
submitUriOperationCallable
public com.google.api.gax.rpc.OperationCallable<SubmitUriRequest,Submission,SubmitUriMetadata> submitUriOperationCallable()
- Overrides:
submitUriOperationCallablein classWebRiskServiceStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein 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
-
-