Class GrpcDataScanServiceStub (1.6.0)

See more code actions.
public class GrpcDataScanServiceStub extends DataScanServiceStub

gRPC stub implementation for the DataScanService service API.

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

java.lang.Object > DataScanServiceStub > GrpcDataScanServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(DataScanServiceStubSettings settings)

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

Constructors

GrpcDataScanServiceStub(DataScanServiceStubSettings settings, ClientContext clientContext)

protected GrpcDataScanServiceStub(DataScanServiceStubSettings settings, ClientContext clientContext)

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

GrpcDataScanServiceStub(DataScanServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcDataScanServiceStub(DataScanServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

createDataScanCallable()

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

createDataScanOperationCallable()

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

deleteDataScanCallable()

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

deleteDataScanOperationCallable()

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

getDataScanCallable()

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

getDataScanJobCallable()

public UnaryCallable<GetDataScanJobRequest,DataScanJob> getDataScanJobCallable()
Returns Overrides

getLocationCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listDataScanJobsCallable()

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

listDataScanJobsPagedCallable()

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

listDataScansCallable()

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

listDataScansPagedCallable()

public UnaryCallable<ListDataScansRequest,DataScanServiceClient.ListDataScansPagedResponse> listDataScansPagedCallable()
Returns 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 Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateDataScanCallable()

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

updateDataScanOperationCallable()

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