Class HttpJsonDocumentServiceStub (2.35.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
NameDescription
clientContextClientContext
Returns
TypeDescription
HttpJsonDocumentServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonDocumentServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonDocumentServiceStub
Exceptions
TypeDescription
IOException

create(DocumentServiceStubSettings settings)

public static final HttpJsonDocumentServiceStub create(DocumentServiceStubSettings settings)
Parameter
NameDescription
settingsDocumentServiceStubSettings
Returns
TypeDescription
HttpJsonDocumentServiceStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
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
NameDescription
settingsDocumentServiceStubSettings
clientContextClientContext

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
NameDescription
settingsDocumentServiceStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

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

batchDeleteDocumentsCallable()

public UnaryCallable<BatchDeleteDocumentsRequest,Operation> batchDeleteDocumentsCallable()
Returns
TypeDescription
UnaryCallable<BatchDeleteDocumentsRequest,Operation>
Overrides

batchDeleteDocumentsOperationCallable()

public OperationCallable<BatchDeleteDocumentsRequest,BatchDeleteDocumentsResponse,BatchDeleteDocumentsMetadata> batchDeleteDocumentsOperationCallable()
Returns
TypeDescription
OperationCallable<BatchDeleteDocumentsRequest,BatchDeleteDocumentsResponse,BatchDeleteDocumentsMetadata>
Overrides

close()

public final void close()
Overrides

getDatasetSchemaCallable()

public UnaryCallable<GetDatasetSchemaRequest,DatasetSchema> getDatasetSchemaCallable()
Returns
TypeDescription
UnaryCallable<GetDatasetSchemaRequest,DatasetSchema>
Overrides

getDocumentCallable()

public UnaryCallable<GetDocumentRequest,GetDocumentResponse> getDocumentCallable()
Returns
TypeDescription
UnaryCallable<GetDocumentRequest,GetDocumentResponse>
Overrides

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
TypeDescription
HttpJsonOperationsStub
Overrides

getLocationCallable()

public UnaryCallable<GetLocationRequest,Location> getLocationCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
Overrides

importDocumentsCallable()

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

importDocumentsOperationCallable()

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listDocumentsCallable()

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

listDocumentsPagedCallable()

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

listLocationsCallable()

public UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>
Overrides

listLocationsPagedCallable()

public UnaryCallable<ListLocationsRequest,DocumentServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateDatasetCallable()

public UnaryCallable<UpdateDatasetRequest,Operation> updateDatasetCallable()
Returns
TypeDescription
UnaryCallable<UpdateDatasetRequest,Operation>
Overrides

updateDatasetOperationCallable()

public OperationCallable<UpdateDatasetRequest,Dataset,UpdateDatasetOperationMetadata> updateDatasetOperationCallable()
Returns
TypeDescription
OperationCallable<UpdateDatasetRequest,Dataset,UpdateDatasetOperationMetadata>
Overrides

updateDatasetSchemaCallable()

public UnaryCallable<UpdateDatasetSchemaRequest,DatasetSchema> updateDatasetSchemaCallable()
Returns
TypeDescription
UnaryCallable<UpdateDatasetSchemaRequest,DatasetSchema>
Overrides