@BetaApi @Generated(value="by gapic-generator-java") 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.
|
getHttpJsonOperationsStub
protected GrpcDocumentsStub(DocumentsStubSettings settings, ClientContext clientContext) throws IOException
IOException
protected GrpcDocumentsStub(DocumentsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOException
public static final GrpcDocumentsStub create(DocumentsStubSettings settings) throws IOException
IOException
public static final GrpcDocumentsStub create(ClientContext clientContext) throws IOException
IOException
public static final GrpcDocumentsStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOException
public GrpcOperationsStub getOperationsStub()
getOperationsStub
in class DocumentsStub
public UnaryCallable<ListDocumentsRequest,ListDocumentsResponse> listDocumentsCallable()
listDocumentsCallable
in class DocumentsStub
public UnaryCallable<ListDocumentsRequest,DocumentsClient.ListDocumentsPagedResponse> listDocumentsPagedCallable()
listDocumentsPagedCallable
in class DocumentsStub
public UnaryCallable<GetDocumentRequest,Document> getDocumentCallable()
getDocumentCallable
in class DocumentsStub
public UnaryCallable<CreateDocumentRequest,Operation> createDocumentCallable()
createDocumentCallable
in class DocumentsStub
public OperationCallable<CreateDocumentRequest,Document,KnowledgeOperationMetadata> createDocumentOperationCallable()
createDocumentOperationCallable
in class DocumentsStub
public UnaryCallable<ImportDocumentsRequest,Operation> importDocumentsCallable()
importDocumentsCallable
in class DocumentsStub
public OperationCallable<ImportDocumentsRequest,ImportDocumentsResponse,KnowledgeOperationMetadata> importDocumentsOperationCallable()
importDocumentsOperationCallable
in class DocumentsStub
public UnaryCallable<DeleteDocumentRequest,Operation> deleteDocumentCallable()
deleteDocumentCallable
in class DocumentsStub
public OperationCallable<DeleteDocumentRequest,Empty,KnowledgeOperationMetadata> deleteDocumentOperationCallable()
deleteDocumentOperationCallable
in class DocumentsStub
public UnaryCallable<UpdateDocumentRequest,Operation> updateDocumentCallable()
updateDocumentCallable
in class DocumentsStub
public OperationCallable<UpdateDocumentRequest,Document,KnowledgeOperationMetadata> updateDocumentOperationCallable()
updateDocumentOperationCallable
in class DocumentsStub
public UnaryCallable<ReloadDocumentRequest,Operation> reloadDocumentCallable()
reloadDocumentCallable
in class DocumentsStub
public OperationCallable<ReloadDocumentRequest,Document,KnowledgeOperationMetadata> reloadDocumentOperationCallable()
reloadDocumentOperationCallable
in class DocumentsStub
public UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
listLocationsCallable
in class DocumentsStub
public UnaryCallable<com.google.cloud.location.ListLocationsRequest,DocumentsClient.ListLocationsPagedResponse> listLocationsPagedCallable()
listLocationsPagedCallable
in class DocumentsStub
public UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
getLocationCallable
in class DocumentsStub
public final void close()
close
in interface AutoCloseable
close
in class DocumentsStub
public void shutdown()
public boolean isShutdown()
public boolean isTerminated()
public void shutdownNow()
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
InterruptedException
Copyright © 2022 Google LLC. All rights reserved.