Class GrpcStorageTransferServiceStub
- java.lang.Object
-
- com.google.storagetransfer.v1.proto.stub.StorageTransferServiceStub
-
- com.google.storagetransfer.v1.proto.stub.GrpcStorageTransferServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") public class GrpcStorageTransferServiceStub extends StorageTransferServiceStub
gRPC stub implementation for the StorageTransferService service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GrpcStorageTransferServiceStub(StorageTransferServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcStorageTransferServiceStub, using the given settings.protected
GrpcStorageTransferServiceStub(StorageTransferServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcStorageTransferServiceStub, using the given settings.
-
Method Summary
-
Methods inherited from class com.google.storagetransfer.v1.proto.stub.StorageTransferServiceStub
getHttpJsonOperationsStub
-
-
-
-
Constructor Detail
-
GrpcStorageTransferServiceStub
protected GrpcStorageTransferServiceStub(StorageTransferServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcStorageTransferServiceStub, 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
-
GrpcStorageTransferServiceStub
protected GrpcStorageTransferServiceStub(StorageTransferServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcStorageTransferServiceStub, 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 GrpcStorageTransferServiceStub create(StorageTransferServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcStorageTransferServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcStorageTransferServiceStub 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()
- Overrides:
getOperationsStub
in classStorageTransferServiceStub
-
getGoogleServiceAccountCallable
public com.google.api.gax.rpc.UnaryCallable<TransferProto.GetGoogleServiceAccountRequest,TransferTypes.GoogleServiceAccount> getGoogleServiceAccountCallable()
- Overrides:
getGoogleServiceAccountCallable
in classStorageTransferServiceStub
-
createTransferJobCallable
public com.google.api.gax.rpc.UnaryCallable<TransferProto.CreateTransferJobRequest,TransferTypes.TransferJob> createTransferJobCallable()
- Overrides:
createTransferJobCallable
in classStorageTransferServiceStub
-
updateTransferJobCallable
public com.google.api.gax.rpc.UnaryCallable<TransferProto.UpdateTransferJobRequest,TransferTypes.TransferJob> updateTransferJobCallable()
- Overrides:
updateTransferJobCallable
in classStorageTransferServiceStub
-
getTransferJobCallable
public com.google.api.gax.rpc.UnaryCallable<TransferProto.GetTransferJobRequest,TransferTypes.TransferJob> getTransferJobCallable()
- Overrides:
getTransferJobCallable
in classStorageTransferServiceStub
-
listTransferJobsCallable
public com.google.api.gax.rpc.UnaryCallable<TransferProto.ListTransferJobsRequest,TransferProto.ListTransferJobsResponse> listTransferJobsCallable()
- Overrides:
listTransferJobsCallable
in classStorageTransferServiceStub
-
listTransferJobsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<TransferProto.ListTransferJobsRequest,StorageTransferServiceClient.ListTransferJobsPagedResponse> listTransferJobsPagedCallable()
- Overrides:
listTransferJobsPagedCallable
in classStorageTransferServiceStub
-
pauseTransferOperationCallable
public com.google.api.gax.rpc.UnaryCallable<TransferProto.PauseTransferOperationRequest,com.google.protobuf.Empty> pauseTransferOperationCallable()
- Overrides:
pauseTransferOperationCallable
in classStorageTransferServiceStub
-
resumeTransferOperationCallable
public com.google.api.gax.rpc.UnaryCallable<TransferProto.ResumeTransferOperationRequest,com.google.protobuf.Empty> resumeTransferOperationCallable()
- Overrides:
resumeTransferOperationCallable
in classStorageTransferServiceStub
-
runTransferJobCallable
public com.google.api.gax.rpc.UnaryCallable<TransferProto.RunTransferJobRequest,com.google.longrunning.Operation> runTransferJobCallable()
- Overrides:
runTransferJobCallable
in classStorageTransferServiceStub
-
runTransferJobOperationCallable
public com.google.api.gax.rpc.OperationCallable<TransferProto.RunTransferJobRequest,com.google.protobuf.Empty,TransferTypes.TransferOperation> runTransferJobOperationCallable()
- Overrides:
runTransferJobOperationCallable
in classStorageTransferServiceStub
-
deleteTransferJobCallable
public com.google.api.gax.rpc.UnaryCallable<TransferProto.DeleteTransferJobRequest,com.google.protobuf.Empty> deleteTransferJobCallable()
- Overrides:
deleteTransferJobCallable
in classStorageTransferServiceStub
-
createAgentPoolCallable
public com.google.api.gax.rpc.UnaryCallable<TransferProto.CreateAgentPoolRequest,TransferTypes.AgentPool> createAgentPoolCallable()
- Overrides:
createAgentPoolCallable
in classStorageTransferServiceStub
-
updateAgentPoolCallable
public com.google.api.gax.rpc.UnaryCallable<TransferProto.UpdateAgentPoolRequest,TransferTypes.AgentPool> updateAgentPoolCallable()
- Overrides:
updateAgentPoolCallable
in classStorageTransferServiceStub
-
getAgentPoolCallable
public com.google.api.gax.rpc.UnaryCallable<TransferProto.GetAgentPoolRequest,TransferTypes.AgentPool> getAgentPoolCallable()
- Overrides:
getAgentPoolCallable
in classStorageTransferServiceStub
-
listAgentPoolsCallable
public com.google.api.gax.rpc.UnaryCallable<TransferProto.ListAgentPoolsRequest,TransferProto.ListAgentPoolsResponse> listAgentPoolsCallable()
- Overrides:
listAgentPoolsCallable
in classStorageTransferServiceStub
-
listAgentPoolsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<TransferProto.ListAgentPoolsRequest,StorageTransferServiceClient.ListAgentPoolsPagedResponse> listAgentPoolsPagedCallable()
- Overrides:
listAgentPoolsPagedCallable
in classStorageTransferServiceStub
-
deleteAgentPoolCallable
public com.google.api.gax.rpc.UnaryCallable<TransferProto.DeleteAgentPoolRequest,com.google.protobuf.Empty> deleteAgentPoolCallable()
- Overrides:
deleteAgentPoolCallable
in classStorageTransferServiceStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classStorageTransferServiceStub
-
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
-
-