Class GrpcMigrationServiceStub
java.lang.Object
com.google.cloud.bigquery.migration.v2alpha.stub.MigrationServiceStub
com.google.cloud.bigquery.migration.v2alpha.stub.GrpcMigrationServiceStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@BetaApi
@Generated("by gapic-generator-java")
public class GrpcMigrationServiceStub
extends MigrationServiceStub
gRPC stub implementation for the MigrationService service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcMigrationServiceStub(MigrationServiceStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcMigrationServiceStub, using the given settings.protectedGrpcMigrationServiceStub(MigrationServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcMigrationServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcMigrationServiceStubcreate(ClientContext clientContext) static final GrpcMigrationServiceStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcMigrationServiceStubcreate(MigrationServiceStubSettings settings) UnaryCallable<DeleteMigrationWorkflowRequest,com.google.protobuf.Empty> booleanbooleanUnaryCallable<ListMigrationSubtasksRequest,MigrationServiceClient.ListMigrationSubtasksPagedResponse> UnaryCallable<ListMigrationWorkflowsRequest,MigrationServiceClient.ListMigrationWorkflowsPagedResponse> voidshutdown()voidUnaryCallable<StartMigrationWorkflowRequest,com.google.protobuf.Empty>
-
Constructor Details
-
GrpcMigrationServiceStub
protected GrpcMigrationServiceStub(MigrationServiceStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of GrpcMigrationServiceStub, 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
-
GrpcMigrationServiceStub
protected GrpcMigrationServiceStub(MigrationServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcMigrationServiceStub, 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 GrpcMigrationServiceStub create(MigrationServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final GrpcMigrationServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
-
createMigrationWorkflowCallable
public UnaryCallable<CreateMigrationWorkflowRequest,MigrationWorkflow> createMigrationWorkflowCallable()- Overrides:
createMigrationWorkflowCallablein classMigrationServiceStub
-
getMigrationWorkflowCallable
- Overrides:
getMigrationWorkflowCallablein classMigrationServiceStub
-
listMigrationWorkflowsCallable
public UnaryCallable<ListMigrationWorkflowsRequest,ListMigrationWorkflowsResponse> listMigrationWorkflowsCallable()- Overrides:
listMigrationWorkflowsCallablein classMigrationServiceStub
-
listMigrationWorkflowsPagedCallable
public UnaryCallable<ListMigrationWorkflowsRequest,MigrationServiceClient.ListMigrationWorkflowsPagedResponse> listMigrationWorkflowsPagedCallable()- Overrides:
listMigrationWorkflowsPagedCallablein classMigrationServiceStub
-
deleteMigrationWorkflowCallable
public UnaryCallable<DeleteMigrationWorkflowRequest,com.google.protobuf.Empty> deleteMigrationWorkflowCallable()- Overrides:
deleteMigrationWorkflowCallablein classMigrationServiceStub
-
startMigrationWorkflowCallable
public UnaryCallable<StartMigrationWorkflowRequest,com.google.protobuf.Empty> startMigrationWorkflowCallable()- Overrides:
startMigrationWorkflowCallablein classMigrationServiceStub
-
getMigrationSubtaskCallable
- Overrides:
getMigrationSubtaskCallablein classMigrationServiceStub
-
listMigrationSubtasksCallable
public UnaryCallable<ListMigrationSubtasksRequest,ListMigrationSubtasksResponse> listMigrationSubtasksCallable()- Overrides:
listMigrationSubtasksCallablein classMigrationServiceStub
-
listMigrationSubtasksPagedCallable
public UnaryCallable<ListMigrationSubtasksRequest,MigrationServiceClient.ListMigrationSubtasksPagedResponse> listMigrationSubtasksPagedCallable()- Overrides:
listMigrationSubtasksPagedCallablein classMigrationServiceStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classMigrationServiceStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-