@Generated(value="by gapic-generator") @BetaApi(value="A restructuring of stub classes is planned, so this may break in the future") public class GrpcDocumentsStub extends DocumentsStub
This class is for advanced usage and reflects the underlying API directly.
| Modifier | Constructor and Description |
|---|---|
protected |
GrpcDocumentsStub(DocumentsStubSettings settings,
com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcDocumentsStub, using the given settings.
|
protected |
GrpcDocumentsStub(DocumentsStubSettings settings,
com.google.api.gax.rpc.ClientContext clientContext,
com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcDocumentsStub, using the given settings.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
awaitTermination(long duration,
TimeUnit unit) |
void |
close() |
static GrpcDocumentsStub |
create(com.google.api.gax.rpc.ClientContext clientContext) |
static GrpcDocumentsStub |
create(com.google.api.gax.rpc.ClientContext clientContext,
com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) |
static GrpcDocumentsStub |
create(DocumentsStubSettings settings) |
com.google.api.gax.rpc.UnaryCallable<CreateDocumentRequest,com.google.longrunning.Operation> |
createDocumentCallable() |
com.google.api.gax.rpc.OperationCallable<CreateDocumentRequest,Document,KnowledgeOperationMetadata> |
createDocumentOperationCallable() |
com.google.api.gax.rpc.UnaryCallable<DeleteDocumentRequest,com.google.longrunning.Operation> |
deleteDocumentCallable() |
com.google.api.gax.rpc.OperationCallable<DeleteDocumentRequest,Empty,KnowledgeOperationMetadata> |
deleteDocumentOperationCallable() |
com.google.api.gax.rpc.UnaryCallable<GetDocumentRequest,Document> |
getDocumentCallable() |
com.google.longrunning.stub.GrpcOperationsStub |
getOperationsStub() |
boolean |
isShutdown() |
boolean |
isTerminated() |
com.google.api.gax.rpc.UnaryCallable<ListDocumentsRequest,ListDocumentsResponse> |
listDocumentsCallable() |
com.google.api.gax.rpc.UnaryCallable<ListDocumentsRequest,DocumentsClient.ListDocumentsPagedResponse> |
listDocumentsPagedCallable() |
com.google.api.gax.rpc.UnaryCallable<ReloadDocumentRequest,com.google.longrunning.Operation> |
reloadDocumentCallable() |
void |
shutdown() |
void |
shutdownNow() |
com.google.api.gax.rpc.UnaryCallable<UpdateDocumentRequest,com.google.longrunning.Operation> |
updateDocumentCallable() |
com.google.api.gax.rpc.OperationCallable<UpdateDocumentRequest,Document,KnowledgeOperationMetadata> |
updateDocumentOperationCallable() |
protected GrpcDocumentsStub(DocumentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOExceptionprotected GrpcDocumentsStub(DocumentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
IOExceptionpublic static final GrpcDocumentsStub create(DocumentsStubSettings settings) throws IOException
IOExceptionpublic static final GrpcDocumentsStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOExceptionpublic static final GrpcDocumentsStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
IOException@BetaApi(value="The surface for use by generated code is not stable yet and may change in the future.") public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
getOperationsStub in class DocumentsStubpublic com.google.api.gax.rpc.UnaryCallable<ListDocumentsRequest,DocumentsClient.ListDocumentsPagedResponse> listDocumentsPagedCallable()
listDocumentsPagedCallable in class DocumentsStubpublic com.google.api.gax.rpc.UnaryCallable<ListDocumentsRequest,ListDocumentsResponse> listDocumentsCallable()
listDocumentsCallable in class DocumentsStubpublic com.google.api.gax.rpc.UnaryCallable<GetDocumentRequest,Document> getDocumentCallable()
getDocumentCallable in class DocumentsStub@BetaApi(value="The surface for use by generated code is not stable yet and may change in the future.") public com.google.api.gax.rpc.OperationCallable<CreateDocumentRequest,Document,KnowledgeOperationMetadata> createDocumentOperationCallable()
createDocumentOperationCallable in class DocumentsStubpublic com.google.api.gax.rpc.UnaryCallable<CreateDocumentRequest,com.google.longrunning.Operation> createDocumentCallable()
createDocumentCallable in class DocumentsStub@BetaApi(value="The surface for use by generated code is not stable yet and may change in the future.") public com.google.api.gax.rpc.OperationCallable<DeleteDocumentRequest,Empty,KnowledgeOperationMetadata> deleteDocumentOperationCallable()
deleteDocumentOperationCallable in class DocumentsStubpublic com.google.api.gax.rpc.UnaryCallable<DeleteDocumentRequest,com.google.longrunning.Operation> deleteDocumentCallable()
deleteDocumentCallable in class DocumentsStub@BetaApi(value="The surface for use by generated code is not stable yet and may change in the future.") public com.google.api.gax.rpc.OperationCallable<UpdateDocumentRequest,Document,KnowledgeOperationMetadata> updateDocumentOperationCallable()
updateDocumentOperationCallable in class DocumentsStubpublic com.google.api.gax.rpc.UnaryCallable<UpdateDocumentRequest,com.google.longrunning.Operation> updateDocumentCallable()
updateDocumentCallable in class DocumentsStubpublic com.google.api.gax.rpc.UnaryCallable<ReloadDocumentRequest,com.google.longrunning.Operation> reloadDocumentCallable()
reloadDocumentCallable in class DocumentsStubpublic final void close()
close in interface AutoCloseableclose in class DocumentsStubpublic void shutdown()
public boolean isShutdown()
public boolean isTerminated()
public void shutdownNow()
public boolean awaitTermination(long duration,
TimeUnit unit)
throws InterruptedException
InterruptedExceptionCopyright © 2019 Google LLC. All rights reserved.