public class HttpJsonDocumentsStub extends DocumentsStub
REST stub implementation for the Documents service API.
This class is for advanced usage and reflects the underlying API directly.
Static Methods
create(ClientContext clientContext)
public static final HttpJsonDocumentsStub create(ClientContext clientContext)
Parameter
Returns
Exceptions
create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
public static final HttpJsonDocumentsStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
Returns
Exceptions
create(DocumentsStubSettings settings)
public static final HttpJsonDocumentsStub create(DocumentsStubSettings settings)
Parameter
Returns
Exceptions
getMethodDescriptors()
public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Constructors
HttpJsonDocumentsStub(DocumentsStubSettings settings, ClientContext clientContext)
protected HttpJsonDocumentsStub(DocumentsStubSettings settings, ClientContext clientContext)
Constructs an instance of HttpJsonDocumentsStub, 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
HttpJsonDocumentsStub(DocumentsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
protected HttpJsonDocumentsStub(DocumentsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonDocumentsStub, 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
Methods
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Returns
Exceptions
close()
public final void close()
Overrides
createDocumentCallable()
public UnaryCallable<CreateDocumentRequest,Operation> createDocumentCallable()
Returns
Overrides
createDocumentOperationCallable()
public OperationCallable<CreateDocumentRequest,Document,KnowledgeOperationMetadata> createDocumentOperationCallable()
Returns
Overrides
deleteDocumentCallable()
public UnaryCallable<DeleteDocumentRequest,Operation> deleteDocumentCallable()
Returns
Overrides
deleteDocumentOperationCallable()
public OperationCallable<DeleteDocumentRequest,Empty,KnowledgeOperationMetadata> deleteDocumentOperationCallable()
Returns
Overrides
exportDocumentCallable()
public UnaryCallable<ExportDocumentRequest,Operation> exportDocumentCallable()
Returns
Overrides
exportDocumentOperationCallable()
public OperationCallable<ExportDocumentRequest,Document,KnowledgeOperationMetadata> exportDocumentOperationCallable()
Returns
Overrides
getDocumentCallable()
public UnaryCallable<GetDocumentRequest,Document> getDocumentCallable()
Returns
Overrides
getHttpJsonOperationsStub()
public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
Overrides
importDocumentsCallable()
public UnaryCallable<ImportDocumentsRequest,Operation> importDocumentsCallable()
Returns
Overrides
importDocumentsOperationCallable()
public OperationCallable<ImportDocumentsRequest,ImportDocumentsResponse,KnowledgeOperationMetadata> importDocumentsOperationCallable()
Returns
Overrides
isShutdown()
public boolean isShutdown()
Returns
isTerminated()
public boolean isTerminated()
Returns
listDocumentsCallable()
public UnaryCallable<ListDocumentsRequest,ListDocumentsResponse> listDocumentsCallable()
Returns
Overrides
listDocumentsPagedCallable()
public UnaryCallable<ListDocumentsRequest,DocumentsClient.ListDocumentsPagedResponse> listDocumentsPagedCallable()
Returns
Overrides
reloadDocumentCallable()
public UnaryCallable<ReloadDocumentRequest,Operation> reloadDocumentCallable()
Returns
Overrides
reloadDocumentOperationCallable()
public OperationCallable<ReloadDocumentRequest,Document,KnowledgeOperationMetadata> reloadDocumentOperationCallable()
Returns
Overrides
shutdown()
shutdownNow()
public void shutdownNow()
updateDocumentCallable()
public UnaryCallable<UpdateDocumentRequest,Operation> updateDocumentCallable()
Returns
Overrides
updateDocumentOperationCallable()
public OperationCallable<UpdateDocumentRequest,Document,KnowledgeOperationMetadata> updateDocumentOperationCallable()
Returns
Overrides