@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,
ClientContext clientContext)
Constructs an instance of GrpcDocumentsStub, using the given settings.
|
protected |
GrpcDocumentsStub(DocumentsStubSettings settings,
ClientContext clientContext,
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(ClientContext clientContext) |
static GrpcDocumentsStub |
create(ClientContext clientContext,
GrpcStubCallableFactory callableFactory) |
static GrpcDocumentsStub |
create(DocumentsStubSettings settings) |
UnaryCallable<com.google.cloud.dialogflow.v2beta1.CreateDocumentRequest,Operation> |
createDocumentCallable() |
OperationCallable<com.google.cloud.dialogflow.v2beta1.CreateDocumentRequest,com.google.cloud.dialogflow.v2beta1.Document,com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata> |
createDocumentOperationCallable() |
UnaryCallable<com.google.cloud.dialogflow.v2beta1.DeleteDocumentRequest,Operation> |
deleteDocumentCallable() |
OperationCallable<com.google.cloud.dialogflow.v2beta1.DeleteDocumentRequest,Empty,com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata> |
deleteDocumentOperationCallable() |
UnaryCallable<com.google.cloud.dialogflow.v2beta1.GetDocumentRequest,com.google.cloud.dialogflow.v2beta1.Document> |
getDocumentCallable() |
GrpcOperationsStub |
getOperationsStub() |
boolean |
isShutdown() |
boolean |
isTerminated() |
UnaryCallable<com.google.cloud.dialogflow.v2beta1.ListDocumentsRequest,com.google.cloud.dialogflow.v2beta1.ListDocumentsResponse> |
listDocumentsCallable() |
UnaryCallable<com.google.cloud.dialogflow.v2beta1.ListDocumentsRequest,DocumentsClient.ListDocumentsPagedResponse> |
listDocumentsPagedCallable() |
UnaryCallable<com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest,Operation> |
reloadDocumentCallable() |
void |
shutdown() |
void |
shutdownNow() |
UnaryCallable<com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest,Operation> |
updateDocumentCallable() |
protected GrpcDocumentsStub(DocumentsStubSettings settings, ClientContext clientContext) throws IOException
IOExceptionprotected GrpcDocumentsStub(DocumentsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOExceptionpublic static final GrpcDocumentsStub create(DocumentsStubSettings settings) throws IOException
IOExceptionpublic static final GrpcDocumentsStub create(ClientContext clientContext) throws IOException
IOExceptionpublic static final GrpcDocumentsStub create(ClientContext clientContext, 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 GrpcOperationsStub getOperationsStub()
getOperationsStub in class DocumentsStubpublic UnaryCallable<com.google.cloud.dialogflow.v2beta1.ListDocumentsRequest,DocumentsClient.ListDocumentsPagedResponse> listDocumentsPagedCallable()
listDocumentsPagedCallable in class DocumentsStubpublic UnaryCallable<com.google.cloud.dialogflow.v2beta1.ListDocumentsRequest,com.google.cloud.dialogflow.v2beta1.ListDocumentsResponse> listDocumentsCallable()
listDocumentsCallable in class DocumentsStubpublic UnaryCallable<com.google.cloud.dialogflow.v2beta1.GetDocumentRequest,com.google.cloud.dialogflow.v2beta1.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 OperationCallable<com.google.cloud.dialogflow.v2beta1.CreateDocumentRequest,com.google.cloud.dialogflow.v2beta1.Document,com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata> createDocumentOperationCallable()
createDocumentOperationCallable in class DocumentsStubpublic UnaryCallable<com.google.cloud.dialogflow.v2beta1.CreateDocumentRequest,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 OperationCallable<com.google.cloud.dialogflow.v2beta1.DeleteDocumentRequest,Empty,com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata> deleteDocumentOperationCallable()
deleteDocumentOperationCallable in class DocumentsStubpublic UnaryCallable<com.google.cloud.dialogflow.v2beta1.DeleteDocumentRequest,Operation> deleteDocumentCallable()
deleteDocumentCallable in class DocumentsStubpublic UnaryCallable<com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest,Operation> updateDocumentCallable()
updateDocumentCallable in class DocumentsStubpublic UnaryCallable<com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest,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.