Class GrpcDocumentsStub
- java.lang.Object
-
- com.google.cloud.dialogflow.v2beta1.stub.DocumentsStub
-
- com.google.cloud.dialogflow.v2beta1.stub.GrpcDocumentsStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@BetaApi @Generated("by gapic-generator-java") public class GrpcDocumentsStub extends DocumentsStub
gRPC stub implementation for the Documents service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor 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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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,com.google.protobuf.Empty,KnowledgeOperationMetadata>
deleteDocumentOperationCallable()
com.google.api.gax.rpc.UnaryCallable<GetDocumentRequest,Document>
getDocumentCallable()
com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
getLocationCallable()
com.google.longrunning.stub.GrpcOperationsStub
getOperationsStub()
com.google.api.gax.rpc.UnaryCallable<ImportDocumentsRequest,com.google.longrunning.Operation>
importDocumentsCallable()
com.google.api.gax.rpc.OperationCallable<ImportDocumentsRequest,ImportDocumentsResponse,KnowledgeOperationMetadata>
importDocumentsOperationCallable()
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<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>
listLocationsCallable()
com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,DocumentsClient.ListLocationsPagedResponse>
listLocationsPagedCallable()
com.google.api.gax.rpc.UnaryCallable<ReloadDocumentRequest,com.google.longrunning.Operation>
reloadDocumentCallable()
com.google.api.gax.rpc.OperationCallable<ReloadDocumentRequest,Document,KnowledgeOperationMetadata>
reloadDocumentOperationCallable()
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()
-
Methods inherited from class com.google.cloud.dialogflow.v2beta1.stub.DocumentsStub
getHttpJsonOperationsStub
-
-
-
-
Constructor Detail
-
GrpcDocumentsStub
protected GrpcDocumentsStub(DocumentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcDocumentsStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
GrpcDocumentsStub
protected GrpcDocumentsStub(DocumentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcDocumentsStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
-
Method Detail
-
create
public static final GrpcDocumentsStub create(DocumentsStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcDocumentsStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcDocumentsStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
- Overrides:
getOperationsStub
in classDocumentsStub
-
listDocumentsCallable
public com.google.api.gax.rpc.UnaryCallable<ListDocumentsRequest,ListDocumentsResponse> listDocumentsCallable()
- Overrides:
listDocumentsCallable
in classDocumentsStub
-
listDocumentsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListDocumentsRequest,DocumentsClient.ListDocumentsPagedResponse> listDocumentsPagedCallable()
- Overrides:
listDocumentsPagedCallable
in classDocumentsStub
-
getDocumentCallable
public com.google.api.gax.rpc.UnaryCallable<GetDocumentRequest,Document> getDocumentCallable()
- Overrides:
getDocumentCallable
in classDocumentsStub
-
createDocumentCallable
public com.google.api.gax.rpc.UnaryCallable<CreateDocumentRequest,com.google.longrunning.Operation> createDocumentCallable()
- Overrides:
createDocumentCallable
in classDocumentsStub
-
createDocumentOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateDocumentRequest,Document,KnowledgeOperationMetadata> createDocumentOperationCallable()
- Overrides:
createDocumentOperationCallable
in classDocumentsStub
-
importDocumentsCallable
public com.google.api.gax.rpc.UnaryCallable<ImportDocumentsRequest,com.google.longrunning.Operation> importDocumentsCallable()
- Overrides:
importDocumentsCallable
in classDocumentsStub
-
importDocumentsOperationCallable
public com.google.api.gax.rpc.OperationCallable<ImportDocumentsRequest,ImportDocumentsResponse,KnowledgeOperationMetadata> importDocumentsOperationCallable()
- Overrides:
importDocumentsOperationCallable
in classDocumentsStub
-
deleteDocumentCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteDocumentRequest,com.google.longrunning.Operation> deleteDocumentCallable()
- Overrides:
deleteDocumentCallable
in classDocumentsStub
-
deleteDocumentOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteDocumentRequest,com.google.protobuf.Empty,KnowledgeOperationMetadata> deleteDocumentOperationCallable()
- Overrides:
deleteDocumentOperationCallable
in classDocumentsStub
-
updateDocumentCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateDocumentRequest,com.google.longrunning.Operation> updateDocumentCallable()
- Overrides:
updateDocumentCallable
in classDocumentsStub
-
updateDocumentOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateDocumentRequest,Document,KnowledgeOperationMetadata> updateDocumentOperationCallable()
- Overrides:
updateDocumentOperationCallable
in classDocumentsStub
-
reloadDocumentCallable
public com.google.api.gax.rpc.UnaryCallable<ReloadDocumentRequest,com.google.longrunning.Operation> reloadDocumentCallable()
- Overrides:
reloadDocumentCallable
in classDocumentsStub
-
reloadDocumentOperationCallable
public com.google.api.gax.rpc.OperationCallable<ReloadDocumentRequest,Document,KnowledgeOperationMetadata> reloadDocumentOperationCallable()
- Overrides:
reloadDocumentOperationCallable
in classDocumentsStub
-
listLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
- Overrides:
listLocationsCallable
in classDocumentsStub
-
listLocationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,DocumentsClient.ListLocationsPagedResponse> listLocationsPagedCallable()
- Overrides:
listLocationsPagedCallable
in classDocumentsStub
-
getLocationCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
- Overrides:
getLocationCallable
in classDocumentsStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classDocumentsStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
- Throws:
InterruptedException
-
-