Class HttpJsonDataScanServiceStub (1.26.0)

public class HttpJsonDataScanServiceStub extends DataScanServiceStub

REST stub implementation for the DataScanService service API.

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

Inheritance

java.lang.Object > DataScanServiceStub > HttpJsonDataScanServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(DataScanServiceStubSettings settings)

public static final HttpJsonDataScanServiceStub create(DataScanServiceStubSettings settings)
Parameter
NameDescription
settingsDataScanServiceStubSettings
Returns
TypeDescription
HttpJsonDataScanServiceStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonDataScanServiceStub(DataScanServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonDataScanServiceStub(DataScanServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonDataScanServiceStub, 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
settingsDataScanServiceStubSettings
clientContextClientContext

HttpJsonDataScanServiceStub(DataScanServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonDataScanServiceStub(DataScanServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonDataScanServiceStub, 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
settingsDataScanServiceStubSettings
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

close()

public final void close()
Overrides

createDataScanCallable()

public UnaryCallable<CreateDataScanRequest,Operation> createDataScanCallable()
Returns
TypeDescription
UnaryCallable<CreateDataScanRequest,Operation>
Overrides

createDataScanOperationCallable()

public OperationCallable<CreateDataScanRequest,DataScan,OperationMetadata> createDataScanOperationCallable()
Returns
TypeDescription
OperationCallable<CreateDataScanRequest,DataScan,OperationMetadata>
Overrides

deleteDataScanCallable()

public UnaryCallable<DeleteDataScanRequest,Operation> deleteDataScanCallable()
Returns
TypeDescription
UnaryCallable<DeleteDataScanRequest,Operation>
Overrides

deleteDataScanOperationCallable()

public OperationCallable<DeleteDataScanRequest,Empty,OperationMetadata> deleteDataScanOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteDataScanRequest,Empty,OperationMetadata>
Overrides

getDataScanCallable()

public UnaryCallable<GetDataScanRequest,DataScan> getDataScanCallable()
Returns
TypeDescription
UnaryCallable<GetDataScanRequest,DataScan>
Overrides

getDataScanJobCallable()

public UnaryCallable<GetDataScanJobRequest,DataScanJob> getDataScanJobCallable()
Returns
TypeDescription
UnaryCallable<GetDataScanJobRequest,DataScanJob>
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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listDataScanJobsCallable()

public UnaryCallable<ListDataScanJobsRequest,ListDataScanJobsResponse> listDataScanJobsCallable()
Returns
TypeDescription
UnaryCallable<ListDataScanJobsRequest,ListDataScanJobsResponse>
Overrides

listDataScanJobsPagedCallable()

public UnaryCallable<ListDataScanJobsRequest,DataScanServiceClient.ListDataScanJobsPagedResponse> listDataScanJobsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListDataScanJobsRequest,ListDataScanJobsPagedResponse>
Overrides

listDataScansCallable()

public UnaryCallable<ListDataScansRequest,ListDataScansResponse> listDataScansCallable()
Returns
TypeDescription
UnaryCallable<ListDataScansRequest,ListDataScansResponse>
Overrides

listDataScansPagedCallable()

public UnaryCallable<ListDataScansRequest,DataScanServiceClient.ListDataScansPagedResponse> listDataScansPagedCallable()
Returns
TypeDescription
UnaryCallable<ListDataScansRequest,ListDataScansPagedResponse>
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,DataScanServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

runDataScanCallable()

public UnaryCallable<RunDataScanRequest,RunDataScanResponse> runDataScanCallable()
Returns
TypeDescription
UnaryCallable<RunDataScanRequest,RunDataScanResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateDataScanCallable()

public UnaryCallable<UpdateDataScanRequest,Operation> updateDataScanCallable()
Returns
TypeDescription
UnaryCallable<UpdateDataScanRequest,Operation>
Overrides

updateDataScanOperationCallable()

public OperationCallable<UpdateDataScanRequest,DataScan,OperationMetadata> updateDataScanOperationCallable()
Returns
TypeDescription
OperationCallable<UpdateDataScanRequest,DataScan,OperationMetadata>
Overrides