Class HttpJsonMigrationServiceStub
java.lang.Object
com.google.cloud.bigquery.migration.v2alpha.stub.MigrationServiceStub
com.google.cloud.bigquery.migration.v2alpha.stub.HttpJsonMigrationServiceStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@BetaApi
@Generated("by gapic-generator-java")
public class HttpJsonMigrationServiceStub
extends MigrationServiceStub
REST stub implementation for the MigrationService service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHttpJsonMigrationServiceStub(MigrationServiceStubSettings settings, ClientContext clientContext) Constructs an instance of HttpJsonMigrationServiceStub, using the given settings.protectedHttpJsonMigrationServiceStub(MigrationServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) Constructs an instance of HttpJsonMigrationServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final HttpJsonMigrationServiceStubcreate(ClientContext clientContext) static final HttpJsonMigrationServiceStubcreate(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) static final HttpJsonMigrationServiceStubcreate(MigrationServiceStubSettings settings) UnaryCallable<DeleteMigrationWorkflowRequest,com.google.protobuf.Empty> static List<ApiMethodDescriptor>booleanbooleanUnaryCallable<ListMigrationSubtasksRequest,MigrationServiceClient.ListMigrationSubtasksPagedResponse> UnaryCallable<ListMigrationWorkflowsRequest,MigrationServiceClient.ListMigrationWorkflowsPagedResponse> voidshutdown()voidUnaryCallable<StartMigrationWorkflowRequest,com.google.protobuf.Empty>
-
Constructor Details
-
HttpJsonMigrationServiceStub
protected HttpJsonMigrationServiceStub(MigrationServiceStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of HttpJsonMigrationServiceStub, 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
-
HttpJsonMigrationServiceStub
protected HttpJsonMigrationServiceStub(MigrationServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException Constructs an instance of HttpJsonMigrationServiceStub, 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 HttpJsonMigrationServiceStub create(MigrationServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
public static final HttpJsonMigrationServiceStub create(ClientContext clientContext) throws IOException - Throws:
IOException
-
create
public static final HttpJsonMigrationServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getMethodDescriptors
-
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
-