Class GrpcRecaptchaEnterpriseServiceStub (3.0.3)

public class GrpcRecaptchaEnterpriseServiceStub extends RecaptchaEnterpriseServiceStub

gRPC stub implementation for the RecaptchaEnterpriseService service API.

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

Inheritance

java.lang.Object > RecaptchaEnterpriseServiceStub > GrpcRecaptchaEnterpriseServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcRecaptchaEnterpriseServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcRecaptchaEnterpriseServiceStub
Exceptions
TypeDescription
IOException

create(RecaptchaEnterpriseServiceStubSettings settings)

public static final GrpcRecaptchaEnterpriseServiceStub create(RecaptchaEnterpriseServiceStubSettings settings)
Parameter
NameDescription
settingsRecaptchaEnterpriseServiceStubSettings
Returns
TypeDescription
GrpcRecaptchaEnterpriseServiceStub
Exceptions
TypeDescription
IOException

Constructors

GrpcRecaptchaEnterpriseServiceStub(RecaptchaEnterpriseServiceStubSettings settings, ClientContext clientContext)

protected GrpcRecaptchaEnterpriseServiceStub(RecaptchaEnterpriseServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcRecaptchaEnterpriseServiceStub, 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
settingsRecaptchaEnterpriseServiceStubSettings
clientContextClientContext

GrpcRecaptchaEnterpriseServiceStub(RecaptchaEnterpriseServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcRecaptchaEnterpriseServiceStub(RecaptchaEnterpriseServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcRecaptchaEnterpriseServiceStub, 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
settingsRecaptchaEnterpriseServiceStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

annotateAssessmentCallable()

public UnaryCallable<AnnotateAssessmentRequest,AnnotateAssessmentResponse> annotateAssessmentCallable()
Returns
TypeDescription
UnaryCallable<AnnotateAssessmentRequest,AnnotateAssessmentResponse>
Overrides

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

createAssessmentCallable()

public UnaryCallable<CreateAssessmentRequest,Assessment> createAssessmentCallable()
Returns
TypeDescription
UnaryCallable<CreateAssessmentRequest,Assessment>
Overrides

createKeyCallable()

public UnaryCallable<CreateKeyRequest,Key> createKeyCallable()
Returns
TypeDescription
UnaryCallable<CreateKeyRequest,Key>
Overrides

deleteKeyCallable()

public UnaryCallable<DeleteKeyRequest,Empty> deleteKeyCallable()
Returns
TypeDescription
UnaryCallable<DeleteKeyRequest,Empty>
Overrides

getKeyCallable()

public UnaryCallable<GetKeyRequest,Key> getKeyCallable()
Returns
TypeDescription
UnaryCallable<GetKeyRequest,Key>
Overrides

getMetricsCallable()

public UnaryCallable<GetMetricsRequest,Metrics> getMetricsCallable()
Returns
TypeDescription
UnaryCallable<GetMetricsRequest,Metrics>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listKeysCallable()

public UnaryCallable<ListKeysRequest,ListKeysResponse> listKeysCallable()
Returns
TypeDescription
UnaryCallable<ListKeysRequest,ListKeysResponse>
Overrides

listKeysPagedCallable()

public UnaryCallable<ListKeysRequest,RecaptchaEnterpriseServiceClient.ListKeysPagedResponse> listKeysPagedCallable()
Returns
TypeDescription
UnaryCallable<ListKeysRequest,ListKeysPagedResponse>
Overrides

listRelatedAccountGroupMembershipsCallable()

public UnaryCallable<ListRelatedAccountGroupMembershipsRequest,ListRelatedAccountGroupMembershipsResponse> listRelatedAccountGroupMembershipsCallable()
Returns
TypeDescription
UnaryCallable<ListRelatedAccountGroupMembershipsRequest,ListRelatedAccountGroupMembershipsResponse>
Overrides

listRelatedAccountGroupMembershipsPagedCallable()

public UnaryCallable<ListRelatedAccountGroupMembershipsRequest,RecaptchaEnterpriseServiceClient.ListRelatedAccountGroupMembershipsPagedResponse> listRelatedAccountGroupMembershipsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListRelatedAccountGroupMembershipsRequest,ListRelatedAccountGroupMembershipsPagedResponse>
Overrides

listRelatedAccountGroupsCallable()

public UnaryCallable<ListRelatedAccountGroupsRequest,ListRelatedAccountGroupsResponse> listRelatedAccountGroupsCallable()
Returns
TypeDescription
UnaryCallable<ListRelatedAccountGroupsRequest,ListRelatedAccountGroupsResponse>
Overrides

listRelatedAccountGroupsPagedCallable()

public UnaryCallable<ListRelatedAccountGroupsRequest,RecaptchaEnterpriseServiceClient.ListRelatedAccountGroupsPagedResponse> listRelatedAccountGroupsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListRelatedAccountGroupsRequest,ListRelatedAccountGroupsPagedResponse>
Overrides

migrateKeyCallable()

public UnaryCallable<MigrateKeyRequest,Key> migrateKeyCallable()
Returns
TypeDescription
UnaryCallable<MigrateKeyRequest,Key>
Overrides

searchRelatedAccountGroupMembershipsCallable()

public UnaryCallable<SearchRelatedAccountGroupMembershipsRequest,SearchRelatedAccountGroupMembershipsResponse> searchRelatedAccountGroupMembershipsCallable()
Returns
TypeDescription
UnaryCallable<SearchRelatedAccountGroupMembershipsRequest,SearchRelatedAccountGroupMembershipsResponse>
Overrides

searchRelatedAccountGroupMembershipsPagedCallable()

public UnaryCallable<SearchRelatedAccountGroupMembershipsRequest,RecaptchaEnterpriseServiceClient.SearchRelatedAccountGroupMembershipsPagedResponse> searchRelatedAccountGroupMembershipsPagedCallable()
Returns
TypeDescription
UnaryCallable<SearchRelatedAccountGroupMembershipsRequest,SearchRelatedAccountGroupMembershipsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateKeyCallable()

public UnaryCallable<UpdateKeyRequest,Key> updateKeyCallable()
Returns
TypeDescription
UnaryCallable<UpdateKeyRequest,Key>
Overrides