Class GrpcDataTransferServiceStub
- java.lang.Object
-
- com.google.cloud.bigquery.datatransfer.v1.stub.DataTransferServiceStub
-
- com.google.cloud.bigquery.datatransfer.v1.stub.GrpcDataTransferServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") 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.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GrpcDataTransferServiceStub(DataTransferServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcDataTransferServiceStub, using the given settings.protected
GrpcDataTransferServiceStub(DataTransferServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcDataTransferServiceStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
GrpcDataTransferServiceStub
protected GrpcDataTransferServiceStub(DataTransferServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
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.- Throws:
IOException
-
GrpcDataTransferServiceStub
protected GrpcDataTransferServiceStub(DataTransferServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
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.- Throws:
IOException
-
-
Method Detail
-
create
public static final GrpcDataTransferServiceStub create(DataTransferServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcDataTransferServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcDataTransferServiceStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
-
getDataSourceCallable
public com.google.api.gax.rpc.UnaryCallable<GetDataSourceRequest,DataSource> getDataSourceCallable()
- Overrides:
getDataSourceCallable
in classDataTransferServiceStub
-
listDataSourcesCallable
public com.google.api.gax.rpc.UnaryCallable<ListDataSourcesRequest,ListDataSourcesResponse> listDataSourcesCallable()
- Overrides:
listDataSourcesCallable
in classDataTransferServiceStub
-
listDataSourcesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListDataSourcesRequest,DataTransferServiceClient.ListDataSourcesPagedResponse> listDataSourcesPagedCallable()
- Overrides:
listDataSourcesPagedCallable
in classDataTransferServiceStub
-
createTransferConfigCallable
public com.google.api.gax.rpc.UnaryCallable<CreateTransferConfigRequest,TransferConfig> createTransferConfigCallable()
- Overrides:
createTransferConfigCallable
in classDataTransferServiceStub
-
updateTransferConfigCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateTransferConfigRequest,TransferConfig> updateTransferConfigCallable()
- Overrides:
updateTransferConfigCallable
in classDataTransferServiceStub
-
deleteTransferConfigCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteTransferConfigRequest,com.google.protobuf.Empty> deleteTransferConfigCallable()
- Overrides:
deleteTransferConfigCallable
in classDataTransferServiceStub
-
getTransferConfigCallable
public com.google.api.gax.rpc.UnaryCallable<GetTransferConfigRequest,TransferConfig> getTransferConfigCallable()
- Overrides:
getTransferConfigCallable
in classDataTransferServiceStub
-
listTransferConfigsCallable
public com.google.api.gax.rpc.UnaryCallable<ListTransferConfigsRequest,ListTransferConfigsResponse> listTransferConfigsCallable()
- Overrides:
listTransferConfigsCallable
in classDataTransferServiceStub
-
listTransferConfigsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListTransferConfigsRequest,DataTransferServiceClient.ListTransferConfigsPagedResponse> listTransferConfigsPagedCallable()
- Overrides:
listTransferConfigsPagedCallable
in classDataTransferServiceStub
-
scheduleTransferRunsCallable
public com.google.api.gax.rpc.UnaryCallable<ScheduleTransferRunsRequest,ScheduleTransferRunsResponse> scheduleTransferRunsCallable()
- Overrides:
scheduleTransferRunsCallable
in classDataTransferServiceStub
-
startManualTransferRunsCallable
public com.google.api.gax.rpc.UnaryCallable<StartManualTransferRunsRequest,StartManualTransferRunsResponse> startManualTransferRunsCallable()
- Overrides:
startManualTransferRunsCallable
in classDataTransferServiceStub
-
getTransferRunCallable
public com.google.api.gax.rpc.UnaryCallable<GetTransferRunRequest,TransferRun> getTransferRunCallable()
- Overrides:
getTransferRunCallable
in classDataTransferServiceStub
-
deleteTransferRunCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteTransferRunRequest,com.google.protobuf.Empty> deleteTransferRunCallable()
- Overrides:
deleteTransferRunCallable
in classDataTransferServiceStub
-
listTransferRunsCallable
public com.google.api.gax.rpc.UnaryCallable<ListTransferRunsRequest,ListTransferRunsResponse> listTransferRunsCallable()
- Overrides:
listTransferRunsCallable
in classDataTransferServiceStub
-
listTransferRunsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListTransferRunsRequest,DataTransferServiceClient.ListTransferRunsPagedResponse> listTransferRunsPagedCallable()
- Overrides:
listTransferRunsPagedCallable
in classDataTransferServiceStub
-
listTransferLogsCallable
public com.google.api.gax.rpc.UnaryCallable<ListTransferLogsRequest,ListTransferLogsResponse> listTransferLogsCallable()
- Overrides:
listTransferLogsCallable
in classDataTransferServiceStub
-
listTransferLogsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListTransferLogsRequest,DataTransferServiceClient.ListTransferLogsPagedResponse> listTransferLogsPagedCallable()
- Overrides:
listTransferLogsPagedCallable
in classDataTransferServiceStub
-
checkValidCredsCallable
public com.google.api.gax.rpc.UnaryCallable<CheckValidCredsRequest,CheckValidCredsResponse> checkValidCredsCallable()
- Overrides:
checkValidCredsCallable
in classDataTransferServiceStub
-
enrollDataSourcesCallable
public com.google.api.gax.rpc.UnaryCallable<EnrollDataSourcesRequest,com.google.protobuf.Empty> enrollDataSourcesCallable()
- Overrides:
enrollDataSourcesCallable
in classDataTransferServiceStub
-
listLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
- Overrides:
listLocationsCallable
in classDataTransferServiceStub
-
listLocationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,DataTransferServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()
- Overrides:
listLocationsPagedCallable
in classDataTransferServiceStub
-
getLocationCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
- Overrides:
getLocationCallable
in classDataTransferServiceStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classDataTransferServiceStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
- Throws:
InterruptedException
-
-