Class GrpcDocumentLinkServiceStub
- java.lang.Object
-
- com.google.cloud.contentwarehouse.v1.stub.DocumentLinkServiceStub
-
- com.google.cloud.contentwarehouse.v1.stub.GrpcDocumentLinkServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") public class GrpcDocumentLinkServiceStub extends DocumentLinkServiceStub
gRPC stub implementation for the DocumentLinkService service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GrpcDocumentLinkServiceStub(DocumentLinkServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcDocumentLinkServiceStub, using the given settings.protected
GrpcDocumentLinkServiceStub(DocumentLinkServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcDocumentLinkServiceStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
GrpcDocumentLinkServiceStub
protected GrpcDocumentLinkServiceStub(DocumentLinkServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcDocumentLinkServiceStub, 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
-
GrpcDocumentLinkServiceStub
protected GrpcDocumentLinkServiceStub(DocumentLinkServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcDocumentLinkServiceStub, 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 GrpcDocumentLinkServiceStub create(DocumentLinkServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcDocumentLinkServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcDocumentLinkServiceStub 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()
-
listLinkedTargetsCallable
public com.google.api.gax.rpc.UnaryCallable<ListLinkedTargetsRequest,ListLinkedTargetsResponse> listLinkedTargetsCallable()
- Overrides:
listLinkedTargetsCallable
in classDocumentLinkServiceStub
-
listLinkedSourcesCallable
public com.google.api.gax.rpc.UnaryCallable<ListLinkedSourcesRequest,ListLinkedSourcesResponse> listLinkedSourcesCallable()
- Overrides:
listLinkedSourcesCallable
in classDocumentLinkServiceStub
-
listLinkedSourcesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListLinkedSourcesRequest,DocumentLinkServiceClient.ListLinkedSourcesPagedResponse> listLinkedSourcesPagedCallable()
- Overrides:
listLinkedSourcesPagedCallable
in classDocumentLinkServiceStub
-
createDocumentLinkCallable
public com.google.api.gax.rpc.UnaryCallable<CreateDocumentLinkRequest,DocumentLink> createDocumentLinkCallable()
- Overrides:
createDocumentLinkCallable
in classDocumentLinkServiceStub
-
deleteDocumentLinkCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteDocumentLinkRequest,com.google.protobuf.Empty> deleteDocumentLinkCallable()
- Overrides:
deleteDocumentLinkCallable
in classDocumentLinkServiceStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classDocumentLinkServiceStub
-
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
-
-