Class HttpJsonDataTransferServiceStub (2.10.0)

public class HttpJsonDataTransferServiceStub extends DataTransferServiceStub

REST stub implementation for the DataTransferService service API.

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

Inheritance

java.lang.Object > DataTransferServiceStub > HttpJsonDataTransferServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(DataTransferServiceStubSettings settings)

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

getMethodDescriptors()

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

Constructors

HttpJsonDataTransferServiceStub(DataTransferServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonDataTransferServiceStub(DataTransferServiceStubSettings settings, ClientContext clientContext)

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

HttpJsonDataTransferServiceStub(DataTransferServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonDataTransferServiceStub(DataTransferServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

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()
Returns
TypeDescription
UnaryCallable<CheckValidCredsRequest,CheckValidCredsResponse>
Overrides

close()

public final void close()
Overrides

createTransferConfigCallable()

public UnaryCallable<CreateTransferConfigRequest,TransferConfig> createTransferConfigCallable()
Returns
TypeDescription
UnaryCallable<CreateTransferConfigRequest,TransferConfig>
Overrides

deleteTransferConfigCallable()

public UnaryCallable<DeleteTransferConfigRequest,Empty> deleteTransferConfigCallable()
Returns
TypeDescription
UnaryCallable<DeleteTransferConfigRequest,Empty>
Overrides

deleteTransferRunCallable()

public UnaryCallable<DeleteTransferRunRequest,Empty> deleteTransferRunCallable()
Returns
TypeDescription
UnaryCallable<DeleteTransferRunRequest,Empty>
Overrides

enrollDataSourcesCallable()

public UnaryCallable<EnrollDataSourcesRequest,Empty> enrollDataSourcesCallable()
Returns
TypeDescription
UnaryCallable<EnrollDataSourcesRequest,Empty>
Overrides

getDataSourceCallable()

public UnaryCallable<GetDataSourceRequest,DataSource> getDataSourceCallable()
Returns
TypeDescription
UnaryCallable<GetDataSourceRequest,DataSource>
Overrides

getLocationCallable()

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

getTransferConfigCallable()

public UnaryCallable<GetTransferConfigRequest,TransferConfig> getTransferConfigCallable()
Returns
TypeDescription
UnaryCallable<GetTransferConfigRequest,TransferConfig>
Overrides

getTransferRunCallable()

public UnaryCallable<GetTransferRunRequest,TransferRun> getTransferRunCallable()
Returns
TypeDescription
UnaryCallable<GetTransferRunRequest,TransferRun>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listDataSourcesCallable()

public UnaryCallable<ListDataSourcesRequest,ListDataSourcesResponse> listDataSourcesCallable()
Returns
TypeDescription
UnaryCallable<ListDataSourcesRequest,ListDataSourcesResponse>
Overrides

listDataSourcesPagedCallable()

public UnaryCallable<ListDataSourcesRequest,DataTransferServiceClient.ListDataSourcesPagedResponse> listDataSourcesPagedCallable()
Returns
TypeDescription
UnaryCallable<ListDataSourcesRequest,ListDataSourcesPagedResponse>
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()
Returns
TypeDescription
UnaryCallable<ListTransferConfigsRequest,ListTransferConfigsResponse>
Overrides

listTransferConfigsPagedCallable()

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

listTransferLogsCallable()

public UnaryCallable<ListTransferLogsRequest,ListTransferLogsResponse> listTransferLogsCallable()
Returns
TypeDescription
UnaryCallable<ListTransferLogsRequest,ListTransferLogsResponse>
Overrides

listTransferLogsPagedCallable()

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

listTransferRunsCallable()

public UnaryCallable<ListTransferRunsRequest,ListTransferRunsResponse> listTransferRunsCallable()
Returns
TypeDescription
UnaryCallable<ListTransferRunsRequest,ListTransferRunsResponse>
Overrides

listTransferRunsPagedCallable()

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

scheduleTransferRunsCallable()

public UnaryCallable<ScheduleTransferRunsRequest,ScheduleTransferRunsResponse> scheduleTransferRunsCallable()
Returns
TypeDescription
UnaryCallable<ScheduleTransferRunsRequest,ScheduleTransferRunsResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

startManualTransferRunsCallable()

public UnaryCallable<StartManualTransferRunsRequest,StartManualTransferRunsResponse> startManualTransferRunsCallable()
Returns
TypeDescription
UnaryCallable<StartManualTransferRunsRequest,StartManualTransferRunsResponse>
Overrides

updateTransferConfigCallable()

public UnaryCallable<UpdateTransferConfigRequest,TransferConfig> updateTransferConfigCallable()
Returns
TypeDescription
UnaryCallable<UpdateTransferConfigRequest,TransferConfig>
Overrides