@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
IOException
protected GrpcDocumentsStub(DocumentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
IOException
public static final GrpcDocumentsStub create(DocumentsStubSettings settings) throws IOException
IOException
public static final GrpcDocumentsStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOException
public 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 DocumentsStub
public com.google.api.gax.rpc.UnaryCallable<ListDocumentsRequest,DocumentsClient.ListDocumentsPagedResponse> listDocumentsPagedCallable()
listDocumentsPagedCallable
in class DocumentsStub
public com.google.api.gax.rpc.UnaryCallable<ListDocumentsRequest,ListDocumentsResponse> listDocumentsCallable()
listDocumentsCallable
in class DocumentsStub
public 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 DocumentsStub
public 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 DocumentsStub
public 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 DocumentsStub
public com.google.api.gax.rpc.UnaryCallable<UpdateDocumentRequest,com.google.longrunning.Operation> updateDocumentCallable()
updateDocumentCallable
in class DocumentsStub
public com.google.api.gax.rpc.UnaryCallable<ReloadDocumentRequest,com.google.longrunning.Operation> reloadDocumentCallable()
reloadDocumentCallable
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 © 2019 Google LLC. All rights reserved.