Class GrpcDataTransferServiceStub (2.39.0)

public class GrpcDataTransferServiceStub extends DataTransferServiceStub

gRPC stub implementation for the DataTransferService service API.

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

Inheritance

java.lang.Object > DataTransferServiceStub > GrpcDataTransferServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(DataTransferServiceStubSettings settings)

public static final GrpcDataTransferServiceStub create(DataTransferServiceStubSettings settings)
Parameter
NameDescription
settingsDataTransferServiceStubSettings
Returns
TypeDescription
GrpcDataTransferServiceStub
Exceptions
TypeDescription
IOException

Constructors

GrpcDataTransferServiceStub(DataTransferServiceStubSettings settings, ClientContext clientContext)

protected GrpcDataTransferServiceStub(DataTransferServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcDataTransferServiceStub, 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
settingsDataTransferServiceStubSettings
clientContextClientContext

GrpcDataTransferServiceStub(DataTransferServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcDataTransferServiceStub(DataTransferServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

checkValidCredsCallable()

public UnaryCallable<CheckValidCredsRequest,CheckValidCredsResponse> checkValidCredsCallable()
Overrides

close()

public final void close()
Overrides

createTransferConfigCallable()

public UnaryCallable<CreateTransferConfigRequest,TransferConfig> createTransferConfigCallable()
Overrides

deleteTransferConfigCallable()

public UnaryCallable<DeleteTransferConfigRequest,Empty> deleteTransferConfigCallable()
Overrides

deleteTransferRunCallable()

public UnaryCallable<DeleteTransferRunRequest,Empty> deleteTransferRunCallable()
Overrides

enrollDataSourcesCallable()

public UnaryCallable<EnrollDataSourcesRequest,Empty> enrollDataSourcesCallable()
Overrides

getDataSourceCallable()

public UnaryCallable<GetDataSourceRequest,DataSource> getDataSourceCallable()
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

getTransferConfigCallable()

public UnaryCallable<GetTransferConfigRequest,TransferConfig> getTransferConfigCallable()
Overrides

getTransferRunCallable()

public UnaryCallable<GetTransferRunRequest,TransferRun> getTransferRunCallable()
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listDataSourcesCallable()

public UnaryCallable<ListDataSourcesRequest,ListDataSourcesResponse> listDataSourcesCallable()
Overrides

listDataSourcesPagedCallable()

public UnaryCallable<ListDataSourcesRequest,DataTransferServiceClient.ListDataSourcesPagedResponse> listDataSourcesPagedCallable()
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,DataTransferServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

listTransferConfigsCallable()

public UnaryCallable<ListTransferConfigsRequest,ListTransferConfigsResponse> listTransferConfigsCallable()
Overrides

listTransferConfigsPagedCallable()

public UnaryCallable<ListTransferConfigsRequest,DataTransferServiceClient.ListTransferConfigsPagedResponse> listTransferConfigsPagedCallable()
Overrides

listTransferLogsCallable()

public UnaryCallable<ListTransferLogsRequest,ListTransferLogsResponse> listTransferLogsCallable()
Overrides

listTransferLogsPagedCallable()

public UnaryCallable<ListTransferLogsRequest,DataTransferServiceClient.ListTransferLogsPagedResponse> listTransferLogsPagedCallable()
Overrides

listTransferRunsCallable()

public UnaryCallable<ListTransferRunsRequest,ListTransferRunsResponse> listTransferRunsCallable()
Overrides

listTransferRunsPagedCallable()

public UnaryCallable<ListTransferRunsRequest,DataTransferServiceClient.ListTransferRunsPagedResponse> listTransferRunsPagedCallable()
Overrides

scheduleTransferRunsCallable()

public UnaryCallable<ScheduleTransferRunsRequest,ScheduleTransferRunsResponse> scheduleTransferRunsCallable()
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

startManualTransferRunsCallable()

public UnaryCallable<StartManualTransferRunsRequest,StartManualTransferRunsResponse> startManualTransferRunsCallable()
Overrides

unenrollDataSourcesCallable()

public UnaryCallable<UnenrollDataSourcesRequest,Empty> unenrollDataSourcesCallable()
Overrides

updateTransferConfigCallable()

public UnaryCallable<UpdateTransferConfigRequest,TransferConfig> updateTransferConfigCallable()
Overrides