Class GrpcDocumentLinkServiceStub (0.25.0)

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.

Inheritance

java.lang.Object > DocumentLinkServiceStub > GrpcDocumentLinkServiceStub

Static Methods

create(ClientContext clientContext)

public static final GrpcDocumentLinkServiceStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcDocumentLinkServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcDocumentLinkServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcDocumentLinkServiceStub
Exceptions
TypeDescription
IOException

create(DocumentLinkServiceStubSettings settings)

public static final GrpcDocumentLinkServiceStub create(DocumentLinkServiceStubSettings settings)
Parameter
NameDescription
settingsDocumentLinkServiceStubSettings
Returns
TypeDescription
GrpcDocumentLinkServiceStub
Exceptions
TypeDescription
IOException

Constructors

GrpcDocumentLinkServiceStub(DocumentLinkServiceStubSettings settings, ClientContext clientContext)

protected GrpcDocumentLinkServiceStub(DocumentLinkServiceStubSettings settings, ClientContext clientContext)

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.

Parameters
NameDescription
settingsDocumentLinkServiceStubSettings
clientContextClientContext

GrpcDocumentLinkServiceStub(DocumentLinkServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcDocumentLinkServiceStub(DocumentLinkServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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.

Parameters
NameDescription
settingsDocumentLinkServiceStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

createDocumentLinkCallable()

public UnaryCallable<CreateDocumentLinkRequest,DocumentLink> createDocumentLinkCallable()
Returns
TypeDescription
UnaryCallable<CreateDocumentLinkRequest,DocumentLink>
Overrides

deleteDocumentLinkCallable()

public UnaryCallable<DeleteDocumentLinkRequest,Empty> deleteDocumentLinkCallable()
Returns
TypeDescription
UnaryCallable<DeleteDocumentLinkRequest,Empty>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listLinkedSourcesCallable()

public UnaryCallable<ListLinkedSourcesRequest,ListLinkedSourcesResponse> listLinkedSourcesCallable()
Returns
TypeDescription
UnaryCallable<ListLinkedSourcesRequest,ListLinkedSourcesResponse>
Overrides

listLinkedSourcesPagedCallable()

public UnaryCallable<ListLinkedSourcesRequest,DocumentLinkServiceClient.ListLinkedSourcesPagedResponse> listLinkedSourcesPagedCallable()
Returns
TypeDescription
UnaryCallable<ListLinkedSourcesRequest,ListLinkedSourcesPagedResponse>
Overrides

listLinkedTargetsCallable()

public UnaryCallable<ListLinkedTargetsRequest,ListLinkedTargetsResponse> listLinkedTargetsCallable()
Returns
TypeDescription
UnaryCallable<ListLinkedTargetsRequest,ListLinkedTargetsResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()