Class GrpcDocumentServiceStub
- java.lang.Object
-
- com.google.cloud.contentwarehouse.v1.stub.DocumentServiceStub
-
- com.google.cloud.contentwarehouse.v1.stub.GrpcDocumentServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") public class GrpcDocumentServiceStub extends DocumentServiceStub
gRPC stub implementation for the DocumentService service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GrpcDocumentServiceStub(DocumentServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcDocumentServiceStub, using the given settings.protected
GrpcDocumentServiceStub(DocumentServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcDocumentServiceStub, 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 GrpcDocumentServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static GrpcDocumentServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
static GrpcDocumentServiceStub
create(DocumentServiceStubSettings settings)
com.google.api.gax.rpc.UnaryCallable<CreateDocumentRequest,CreateDocumentResponse>
createDocumentCallable()
com.google.api.gax.rpc.UnaryCallable<DeleteDocumentRequest,com.google.protobuf.Empty>
deleteDocumentCallable()
com.google.api.gax.rpc.UnaryCallable<FetchAclRequest,FetchAclResponse>
fetchAclCallable()
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<LockDocumentRequest,Document>
lockDocumentCallable()
com.google.api.gax.rpc.UnaryCallable<SearchDocumentsRequest,SearchDocumentsResponse>
searchDocumentsCallable()
com.google.api.gax.rpc.UnaryCallable<SearchDocumentsRequest,DocumentServiceClient.SearchDocumentsPagedResponse>
searchDocumentsPagedCallable()
com.google.api.gax.rpc.UnaryCallable<SetAclRequest,SetAclResponse>
setAclCallable()
void
shutdown()
void
shutdownNow()
com.google.api.gax.rpc.UnaryCallable<UpdateDocumentRequest,UpdateDocumentResponse>
updateDocumentCallable()
-
-
-
Constructor Detail
-
GrpcDocumentServiceStub
protected GrpcDocumentServiceStub(DocumentServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcDocumentServiceStub, 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
-
GrpcDocumentServiceStub
protected GrpcDocumentServiceStub(DocumentServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcDocumentServiceStub, 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 GrpcDocumentServiceStub create(DocumentServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcDocumentServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcDocumentServiceStub 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()
-
createDocumentCallable
public com.google.api.gax.rpc.UnaryCallable<CreateDocumentRequest,CreateDocumentResponse> createDocumentCallable()
- Overrides:
createDocumentCallable
in classDocumentServiceStub
-
getDocumentCallable
public com.google.api.gax.rpc.UnaryCallable<GetDocumentRequest,Document> getDocumentCallable()
- Overrides:
getDocumentCallable
in classDocumentServiceStub
-
updateDocumentCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateDocumentRequest,UpdateDocumentResponse> updateDocumentCallable()
- Overrides:
updateDocumentCallable
in classDocumentServiceStub
-
deleteDocumentCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteDocumentRequest,com.google.protobuf.Empty> deleteDocumentCallable()
- Overrides:
deleteDocumentCallable
in classDocumentServiceStub
-
searchDocumentsCallable
public com.google.api.gax.rpc.UnaryCallable<SearchDocumentsRequest,SearchDocumentsResponse> searchDocumentsCallable()
- Overrides:
searchDocumentsCallable
in classDocumentServiceStub
-
searchDocumentsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<SearchDocumentsRequest,DocumentServiceClient.SearchDocumentsPagedResponse> searchDocumentsPagedCallable()
- Overrides:
searchDocumentsPagedCallable
in classDocumentServiceStub
-
lockDocumentCallable
public com.google.api.gax.rpc.UnaryCallable<LockDocumentRequest,Document> lockDocumentCallable()
- Overrides:
lockDocumentCallable
in classDocumentServiceStub
-
fetchAclCallable
public com.google.api.gax.rpc.UnaryCallable<FetchAclRequest,FetchAclResponse> fetchAclCallable()
- Overrides:
fetchAclCallable
in classDocumentServiceStub
-
setAclCallable
public com.google.api.gax.rpc.UnaryCallable<SetAclRequest,SetAclResponse> setAclCallable()
- Overrides:
setAclCallable
in classDocumentServiceStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classDocumentServiceStub
-
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
-
-