Class GrpcDocumentServiceStub (0.3.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
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcDocumentServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(DocumentServiceStubSettings settings)

public static final GrpcDocumentServiceStub create(DocumentServiceStubSettings settings)
Parameter
NameDescription
settingsDocumentServiceStubSettings
Returns
TypeDescription
GrpcDocumentServiceStub
Exceptions
TypeDescription
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
NameDescription
settingsDocumentServiceStubSettings
clientContextClientContext

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
NameDescription
settingsDocumentServiceStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

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

createDocumentCallable()

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

deleteDocumentCallable()

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

fetchAclCallable()

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

getDocumentCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

searchDocumentsCallable()

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

searchDocumentsPagedCallable()

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

setAclCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateDocumentCallable()

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