Class GrpcDocumentServiceStub (0.49.0)

public class GrpcDocumentServiceStub extends DocumentServiceStub

gRPC stub implementation for the DocumentService service API.

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

Inheritance

java.lang.Object > DocumentServiceStub > GrpcDocumentServiceStub

Static Methods

create(ClientContext clientContext)

public static final GrpcDocumentServiceStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
GrpcDocumentServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcDocumentServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory GrpcStubCallableFactory
Returns
Type Description
GrpcDocumentServiceStub
Exceptions
Type Description
IOException

create(DocumentServiceStubSettings settings)

public static final GrpcDocumentServiceStub create(DocumentServiceStubSettings settings)
Parameter
Name Description
settings DocumentServiceStubSettings
Returns
Type Description
GrpcDocumentServiceStub
Exceptions
Type Description
IOException

Constructors

GrpcDocumentServiceStub(DocumentServiceStubSettings settings, ClientContext clientContext)

protected GrpcDocumentServiceStub(DocumentServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcDocumentServiceStub, 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
Name Description
settings DocumentServiceStubSettings
clientContext ClientContext

GrpcDocumentServiceStub(DocumentServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcDocumentServiceStub(DocumentServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcDocumentServiceStub, 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
Name Description
settings DocumentServiceStubSettings
clientContext ClientContext
callableFactory GrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

createDocumentCallable()

public UnaryCallable<CreateDocumentRequest,CreateDocumentResponse> createDocumentCallable()
Returns
Type Description
UnaryCallable<CreateDocumentRequest,CreateDocumentResponse>
Overrides

deleteDocumentCallable()

public UnaryCallable<DeleteDocumentRequest,Empty> deleteDocumentCallable()
Returns
Type Description
UnaryCallable<DeleteDocumentRequest,Empty>
Overrides

fetchAclCallable()

public UnaryCallable<FetchAclRequest,FetchAclResponse> fetchAclCallable()
Returns
Type Description
UnaryCallable<FetchAclRequest,FetchAclResponse>
Overrides

getDocumentCallable()

public UnaryCallable<GetDocumentRequest,Document> getDocumentCallable()
Returns
Type Description
UnaryCallable<GetDocumentRequest,Document>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

lockDocumentCallable()

public UnaryCallable<LockDocumentRequest,Document> lockDocumentCallable()
Returns
Type Description
UnaryCallable<LockDocumentRequest,Document>
Overrides

searchDocumentsCallable()

public UnaryCallable<SearchDocumentsRequest,SearchDocumentsResponse> searchDocumentsCallable()
Returns
Type Description
UnaryCallable<SearchDocumentsRequest,SearchDocumentsResponse>
Overrides

searchDocumentsPagedCallable()

public UnaryCallable<SearchDocumentsRequest,DocumentServiceClient.SearchDocumentsPagedResponse> searchDocumentsPagedCallable()
Returns
Type Description
UnaryCallable<SearchDocumentsRequest,SearchDocumentsPagedResponse>
Overrides

setAclCallable()

public UnaryCallable<SetAclRequest,SetAclResponse> setAclCallable()
Returns
Type Description
UnaryCallable<SetAclRequest,SetAclResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateDocumentCallable()

public UnaryCallable<UpdateDocumentRequest,UpdateDocumentResponse> updateDocumentCallable()
Returns
Type Description
UnaryCallable<UpdateDocumentRequest,UpdateDocumentResponse>
Overrides