Class HttpJsonWebRiskServiceStub (2.27.0)

public class HttpJsonWebRiskServiceStub extends WebRiskServiceStub

REST stub implementation for the WebRiskService service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > WebRiskServiceStub > HttpJsonWebRiskServiceStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonWebRiskServiceStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
HttpJsonWebRiskServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonWebRiskServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonWebRiskServiceStub
Exceptions
TypeDescription
IOException

create(WebRiskServiceStubSettings settings)

public static final HttpJsonWebRiskServiceStub create(WebRiskServiceStubSettings settings)
Parameter
NameDescription
settingsWebRiskServiceStubSettings
Returns
TypeDescription
HttpJsonWebRiskServiceStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonWebRiskServiceStub(WebRiskServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonWebRiskServiceStub(WebRiskServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonWebRiskServiceStub, 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.

Parameters
NameDescription
settingsWebRiskServiceStubSettings
clientContextClientContext

HttpJsonWebRiskServiceStub(WebRiskServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonWebRiskServiceStub(WebRiskServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonWebRiskServiceStub, 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.

Parameters
NameDescription
settingsWebRiskServiceStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

computeThreatListDiffCallable()

public UnaryCallable<ComputeThreatListDiffRequest,ComputeThreatListDiffResponse> computeThreatListDiffCallable()
Returns
TypeDescription
UnaryCallable<ComputeThreatListDiffRequest,ComputeThreatListDiffResponse>
Overrides

createSubmissionCallable()

public UnaryCallable<CreateSubmissionRequest,Submission> createSubmissionCallable()
Returns
TypeDescription
UnaryCallable<CreateSubmissionRequest,Submission>
Overrides

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
TypeDescription
HttpJsonOperationsStub
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

searchHashesCallable()

public UnaryCallable<SearchHashesRequest,SearchHashesResponse> searchHashesCallable()
Returns
TypeDescription
UnaryCallable<SearchHashesRequest,SearchHashesResponse>
Overrides

searchUrisCallable()

public UnaryCallable<SearchUrisRequest,SearchUrisResponse> searchUrisCallable()
Returns
TypeDescription
UnaryCallable<SearchUrisRequest,SearchUrisResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

submitUriCallable()

public UnaryCallable<SubmitUriRequest,Operation> submitUriCallable()
Returns
TypeDescription
UnaryCallable<SubmitUriRequest,Operation>
Overrides

submitUriOperationCallable()

public OperationCallable<SubmitUriRequest,Submission,SubmitUriMetadata> submitUriOperationCallable()
Returns
TypeDescription
OperationCallable<SubmitUriRequest,Submission,SubmitUriMetadata>
Overrides