Class HttpJsonDocumentServiceStub (0.39.0)

public class HttpJsonDocumentServiceStub extends DocumentServiceStub

REST stub implementation for the DocumentService service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > DocumentServiceStub > HttpJsonDocumentServiceStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonDocumentServiceStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonDocumentServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonDocumentServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
Returns
Type Description
HttpJsonDocumentServiceStub
Exceptions
Type Description
IOException

create(DocumentServiceStubSettings settings)

public static final HttpJsonDocumentServiceStub create(DocumentServiceStubSettings settings)
Parameter
Name Description
settings DocumentServiceStubSettings
Returns
Type Description
HttpJsonDocumentServiceStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonDocumentServiceStub(DocumentServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonDocumentServiceStub(DocumentServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonDocumentServiceStub, 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
Name Description
settings DocumentServiceStubSettings
clientContext ClientContext

HttpJsonDocumentServiceStub(DocumentServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonDocumentServiceStub(DocumentServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonDocumentServiceStub, 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
Name Description
settings DocumentServiceStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

createDocumentCallable()

public UnaryCallable<CreateDocumentRequest,Document> createDocumentCallable()
Returns
Type Description
UnaryCallable<CreateDocumentRequest,Document>
Overrides

deleteDocumentCallable()

public UnaryCallable<DeleteDocumentRequest,Empty> deleteDocumentCallable()
Returns
Type Description
UnaryCallable<DeleteDocumentRequest,Empty>
Overrides

getDocumentCallable()

public UnaryCallable<GetDocumentRequest,Document> getDocumentCallable()
Returns
Type Description
UnaryCallable<GetDocumentRequest,Document>
Overrides

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
Type Description
HttpJsonOperationsStub
Overrides

importDocumentsCallable()

public UnaryCallable<ImportDocumentsRequest,Operation> importDocumentsCallable()
Returns
Type Description
UnaryCallable<ImportDocumentsRequest,Operation>
Overrides

importDocumentsOperationCallable()

public OperationCallable<ImportDocumentsRequest,ImportDocumentsResponse,ImportDocumentsMetadata> importDocumentsOperationCallable()
Returns
Type Description
OperationCallable<ImportDocumentsRequest,ImportDocumentsResponse,ImportDocumentsMetadata>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listDocumentsCallable()

public UnaryCallable<ListDocumentsRequest,ListDocumentsResponse> listDocumentsCallable()
Returns
Type Description
UnaryCallable<ListDocumentsRequest,ListDocumentsResponse>
Overrides

listDocumentsPagedCallable()

public UnaryCallable<ListDocumentsRequest,DocumentServiceClient.ListDocumentsPagedResponse> listDocumentsPagedCallable()
Returns
Type Description
UnaryCallable<ListDocumentsRequest,ListDocumentsPagedResponse>
Overrides

purgeDocumentsCallable()

public UnaryCallable<PurgeDocumentsRequest,Operation> purgeDocumentsCallable()
Returns
Type Description
UnaryCallable<PurgeDocumentsRequest,Operation>
Overrides

purgeDocumentsOperationCallable()

public OperationCallable<PurgeDocumentsRequest,PurgeDocumentsResponse,PurgeDocumentsMetadata> purgeDocumentsOperationCallable()
Returns
Type Description
OperationCallable<PurgeDocumentsRequest,PurgeDocumentsResponse,PurgeDocumentsMetadata>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateDocumentCallable()

public UnaryCallable<UpdateDocumentRequest,Document> updateDocumentCallable()
Returns
Type Description
UnaryCallable<UpdateDocumentRequest,Document>
Overrides