Class HttpJsonStorageTransferServiceStub
java.lang.Object
com.google.storagetransfer.v1.proto.stub.StorageTransferServiceStub
com.google.storagetransfer.v1.proto.stub.HttpJsonStorageTransferServiceStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java")
public class HttpJsonStorageTransferServiceStub
extends StorageTransferServiceStub
REST stub implementation for the StorageTransferService service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHttpJsonStorageTransferServiceStub(StorageTransferServiceStubSettings settings, ClientContext clientContext) Constructs an instance of HttpJsonStorageTransferServiceStub, using the given settings.protectedHttpJsonStorageTransferServiceStub(StorageTransferServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) Constructs an instance of HttpJsonStorageTransferServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final HttpJsonStorageTransferServiceStubcreate(ClientContext clientContext) static final HttpJsonStorageTransferServiceStubcreate(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) static final HttpJsonStorageTransferServiceStubcreate(StorageTransferServiceStubSettings settings) UnaryCallable<TransferProto.DeleteAgentPoolRequest,com.google.protobuf.Empty> UnaryCallable<TransferProto.DeleteTransferJobRequest,com.google.protobuf.Empty> static List<ApiMethodDescriptor>booleanbooleanUnaryCallable<TransferProto.ListAgentPoolsRequest,StorageTransferServiceClient.ListAgentPoolsPagedResponse> UnaryCallable<TransferProto.ListTransferJobsRequest,StorageTransferServiceClient.ListTransferJobsPagedResponse> UnaryCallable<TransferProto.PauseTransferOperationRequest,com.google.protobuf.Empty> UnaryCallable<TransferProto.ResumeTransferOperationRequest,com.google.protobuf.Empty> OperationCallable<TransferProto.RunTransferJobRequest,com.google.protobuf.Empty, TransferTypes.TransferOperation> voidshutdown()voidMethods inherited from class com.google.storagetransfer.v1.proto.stub.StorageTransferServiceStub
getOperationsStub
-
Constructor Details
-
HttpJsonStorageTransferServiceStub
protected HttpJsonStorageTransferServiceStub(StorageTransferServiceStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of HttpJsonStorageTransferServiceStub, 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
-
HttpJsonStorageTransferServiceStub
protected HttpJsonStorageTransferServiceStub(StorageTransferServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException Constructs an instance of HttpJsonStorageTransferServiceStub, 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 Details
-
create
public static final HttpJsonStorageTransferServiceStub create(StorageTransferServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
public static final HttpJsonStorageTransferServiceStub create(ClientContext clientContext) throws IOException - Throws:
IOException
-
create
public static final HttpJsonStorageTransferServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getMethodDescriptors
-
getHttpJsonOperationsStub
- Overrides:
getHttpJsonOperationsStubin classStorageTransferServiceStub
-
getGoogleServiceAccountCallable
public UnaryCallable<TransferProto.GetGoogleServiceAccountRequest,TransferTypes.GoogleServiceAccount> getGoogleServiceAccountCallable()- Overrides:
getGoogleServiceAccountCallablein classStorageTransferServiceStub
-
createTransferJobCallable
public UnaryCallable<TransferProto.CreateTransferJobRequest,TransferTypes.TransferJob> createTransferJobCallable()- Overrides:
createTransferJobCallablein classStorageTransferServiceStub
-
updateTransferJobCallable
public UnaryCallable<TransferProto.UpdateTransferJobRequest,TransferTypes.TransferJob> updateTransferJobCallable()- Overrides:
updateTransferJobCallablein classStorageTransferServiceStub
-
getTransferJobCallable
public UnaryCallable<TransferProto.GetTransferJobRequest,TransferTypes.TransferJob> getTransferJobCallable()- Overrides:
getTransferJobCallablein classStorageTransferServiceStub
-
listTransferJobsCallable
public UnaryCallable<TransferProto.ListTransferJobsRequest,TransferProto.ListTransferJobsResponse> listTransferJobsCallable()- Overrides:
listTransferJobsCallablein classStorageTransferServiceStub
-
listTransferJobsPagedCallable
public UnaryCallable<TransferProto.ListTransferJobsRequest,StorageTransferServiceClient.ListTransferJobsPagedResponse> listTransferJobsPagedCallable()- Overrides:
listTransferJobsPagedCallablein classStorageTransferServiceStub
-
pauseTransferOperationCallable
public UnaryCallable<TransferProto.PauseTransferOperationRequest,com.google.protobuf.Empty> pauseTransferOperationCallable()- Overrides:
pauseTransferOperationCallablein classStorageTransferServiceStub
-
resumeTransferOperationCallable
public UnaryCallable<TransferProto.ResumeTransferOperationRequest,com.google.protobuf.Empty> resumeTransferOperationCallable()- Overrides:
resumeTransferOperationCallablein classStorageTransferServiceStub
-
runTransferJobCallable
- Overrides:
runTransferJobCallablein classStorageTransferServiceStub
-
runTransferJobOperationCallable
public OperationCallable<TransferProto.RunTransferJobRequest,com.google.protobuf.Empty, runTransferJobOperationCallable()TransferTypes.TransferOperation> - Overrides:
runTransferJobOperationCallablein classStorageTransferServiceStub
-
deleteTransferJobCallable
public UnaryCallable<TransferProto.DeleteTransferJobRequest,com.google.protobuf.Empty> deleteTransferJobCallable()- Overrides:
deleteTransferJobCallablein classStorageTransferServiceStub
-
createAgentPoolCallable
public UnaryCallable<TransferProto.CreateAgentPoolRequest,TransferTypes.AgentPool> createAgentPoolCallable()- Overrides:
createAgentPoolCallablein classStorageTransferServiceStub
-
updateAgentPoolCallable
public UnaryCallable<TransferProto.UpdateAgentPoolRequest,TransferTypes.AgentPool> updateAgentPoolCallable()- Overrides:
updateAgentPoolCallablein classStorageTransferServiceStub
-
getAgentPoolCallable
public UnaryCallable<TransferProto.GetAgentPoolRequest,TransferTypes.AgentPool> getAgentPoolCallable()- Overrides:
getAgentPoolCallablein classStorageTransferServiceStub
-
listAgentPoolsCallable
public UnaryCallable<TransferProto.ListAgentPoolsRequest,TransferProto.ListAgentPoolsResponse> listAgentPoolsCallable()- Overrides:
listAgentPoolsCallablein classStorageTransferServiceStub
-
listAgentPoolsPagedCallable
public UnaryCallable<TransferProto.ListAgentPoolsRequest,StorageTransferServiceClient.ListAgentPoolsPagedResponse> listAgentPoolsPagedCallable()- Overrides:
listAgentPoolsPagedCallablein classStorageTransferServiceStub
-
deleteAgentPoolCallable
public UnaryCallable<TransferProto.DeleteAgentPoolRequest,com.google.protobuf.Empty> deleteAgentPoolCallable()- Overrides:
deleteAgentPoolCallablein classStorageTransferServiceStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classStorageTransferServiceStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-