Class GrpcDocumentsStub (4.6.0)

public class GrpcDocumentsStub extends DocumentsStub

gRPC stub implementation for the Documents service API.

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

Inheritance

java.lang.Object > DocumentsStub > GrpcDocumentsStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(DocumentsStubSettings settings)

public static final GrpcDocumentsStub create(DocumentsStubSettings settings)
Parameter
NameDescription
settingsDocumentsStubSettings
Returns
TypeDescription
GrpcDocumentsStub
Exceptions
TypeDescription
IOException

Constructors

GrpcDocumentsStub(DocumentsStubSettings settings, ClientContext clientContext)

protected GrpcDocumentsStub(DocumentsStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcDocumentsStub, 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
settingsDocumentsStubSettings
clientContextClientContext

GrpcDocumentsStub(DocumentsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcDocumentsStub(DocumentsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcDocumentsStub, 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
settingsDocumentsStubSettings
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,Operation> createDocumentCallable()
Returns
TypeDescription
UnaryCallable<CreateDocumentRequest,Operation>
Overrides

createDocumentOperationCallable()

public OperationCallable<CreateDocumentRequest,Document,KnowledgeOperationMetadata> createDocumentOperationCallable()
Returns
TypeDescription
OperationCallable<CreateDocumentRequest,Document,KnowledgeOperationMetadata>
Overrides

deleteDocumentCallable()

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

deleteDocumentOperationCallable()

public OperationCallable<DeleteDocumentRequest,Empty,KnowledgeOperationMetadata> deleteDocumentOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteDocumentRequest,Empty,KnowledgeOperationMetadata>
Overrides

exportDocumentCallable()

public UnaryCallable<ExportDocumentRequest,Operation> exportDocumentCallable()
Returns
TypeDescription
UnaryCallable<ExportDocumentRequest,Operation>
Overrides

exportDocumentOperationCallable()

public OperationCallable<ExportDocumentRequest,Document,KnowledgeOperationMetadata> exportDocumentOperationCallable()
Returns
TypeDescription
OperationCallable<ExportDocumentRequest,Document,KnowledgeOperationMetadata>
Overrides

getDocumentCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

importDocumentsCallable()

public UnaryCallable<ImportDocumentsRequest,Operation> importDocumentsCallable()
Returns
TypeDescription
UnaryCallable<ImportDocumentsRequest,Operation>
Overrides

importDocumentsOperationCallable()

public OperationCallable<ImportDocumentsRequest,ImportDocumentsResponse,KnowledgeOperationMetadata> importDocumentsOperationCallable()
Returns
TypeDescription
OperationCallable<ImportDocumentsRequest,ImportDocumentsResponse,KnowledgeOperationMetadata>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listDocumentsCallable()

public UnaryCallable<ListDocumentsRequest,ListDocumentsResponse> listDocumentsCallable()
Returns
TypeDescription
UnaryCallable<ListDocumentsRequest,ListDocumentsResponse>
Overrides

listDocumentsPagedCallable()

public UnaryCallable<ListDocumentsRequest,DocumentsClient.ListDocumentsPagedResponse> listDocumentsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListDocumentsRequest,ListDocumentsPagedResponse>
Overrides

reloadDocumentCallable()

public UnaryCallable<ReloadDocumentRequest,Operation> reloadDocumentCallable()
Returns
TypeDescription
UnaryCallable<ReloadDocumentRequest,Operation>
Overrides

reloadDocumentOperationCallable()

public OperationCallable<ReloadDocumentRequest,Document,KnowledgeOperationMetadata> reloadDocumentOperationCallable()
Returns
TypeDescription
OperationCallable<ReloadDocumentRequest,Document,KnowledgeOperationMetadata>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateDocumentCallable()

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

updateDocumentOperationCallable()

public OperationCallable<UpdateDocumentRequest,Document,KnowledgeOperationMetadata> updateDocumentOperationCallable()
Returns
TypeDescription
OperationCallable<UpdateDocumentRequest,Document,KnowledgeOperationMetadata>
Overrides