@BetaApi @Generated(value="by gapic-generator-java") public class HttpJsonDocumentsStub extends DocumentsStub
This class is for advanced usage and reflects the underlying API directly.
Modifier | Constructor and Description |
---|---|
protected |
HttpJsonDocumentsStub(DocumentsStubSettings settings,
ClientContext clientContext)
Constructs an instance of HttpJsonDocumentsStub, using the given settings.
|
protected |
HttpJsonDocumentsStub(DocumentsStubSettings settings,
ClientContext clientContext,
HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonDocumentsStub, using the given settings.
|
getOperationsStub
protected HttpJsonDocumentsStub(DocumentsStubSettings settings, ClientContext clientContext) throws IOException
IOException
protected HttpJsonDocumentsStub(DocumentsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException
IOException
public static final HttpJsonDocumentsStub create(DocumentsStubSettings settings) throws IOException
IOException
public static final HttpJsonDocumentsStub create(ClientContext clientContext) throws IOException
IOException
public static final HttpJsonDocumentsStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException
IOException
@InternalApi public static List<ApiMethodDescriptor> getMethodDescriptors()
public HttpJsonOperationsStub getHttpJsonOperationsStub()
getHttpJsonOperationsStub
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.