Class HttpJsonMigrationServiceStub
- java.lang.Object
-
- com.google.cloud.bigquery.migration.v2.stub.MigrationServiceStub
-
- com.google.cloud.bigquery.migration.v2.stub.HttpJsonMigrationServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi 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
Constructors Modifier Constructor Description protected
HttpJsonMigrationServiceStub(MigrationServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonMigrationServiceStub, using the given settings.protected
HttpJsonMigrationServiceStub(MigrationServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonMigrationServiceStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
HttpJsonMigrationServiceStub
protected HttpJsonMigrationServiceStub(MigrationServiceStubSettings settings, com.google.api.gax.rpc.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, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.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 Detail
-
create
public static final HttpJsonMigrationServiceStub create(MigrationServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonMigrationServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonMigrationServiceStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getMethodDescriptors
@InternalApi public static List<com.google.api.gax.httpjson.ApiMethodDescriptor> getMethodDescriptors()
-
createMigrationWorkflowCallable
public com.google.api.gax.rpc.UnaryCallable<CreateMigrationWorkflowRequest,MigrationWorkflow> createMigrationWorkflowCallable()
- Overrides:
createMigrationWorkflowCallable
in classMigrationServiceStub
-
getMigrationWorkflowCallable
public com.google.api.gax.rpc.UnaryCallable<GetMigrationWorkflowRequest,MigrationWorkflow> getMigrationWorkflowCallable()
- Overrides:
getMigrationWorkflowCallable
in classMigrationServiceStub
-
listMigrationWorkflowsCallable
public com.google.api.gax.rpc.UnaryCallable<ListMigrationWorkflowsRequest,ListMigrationWorkflowsResponse> listMigrationWorkflowsCallable()
- Overrides:
listMigrationWorkflowsCallable
in classMigrationServiceStub
-
listMigrationWorkflowsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListMigrationWorkflowsRequest,MigrationServiceClient.ListMigrationWorkflowsPagedResponse> listMigrationWorkflowsPagedCallable()
- Overrides:
listMigrationWorkflowsPagedCallable
in classMigrationServiceStub
-
deleteMigrationWorkflowCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteMigrationWorkflowRequest,com.google.protobuf.Empty> deleteMigrationWorkflowCallable()
- Overrides:
deleteMigrationWorkflowCallable
in classMigrationServiceStub
-
startMigrationWorkflowCallable
public com.google.api.gax.rpc.UnaryCallable<StartMigrationWorkflowRequest,com.google.protobuf.Empty> startMigrationWorkflowCallable()
- Overrides:
startMigrationWorkflowCallable
in classMigrationServiceStub
-
getMigrationSubtaskCallable
public com.google.api.gax.rpc.UnaryCallable<GetMigrationSubtaskRequest,MigrationSubtask> getMigrationSubtaskCallable()
- Overrides:
getMigrationSubtaskCallable
in classMigrationServiceStub
-
listMigrationSubtasksCallable
public com.google.api.gax.rpc.UnaryCallable<ListMigrationSubtasksRequest,ListMigrationSubtasksResponse> listMigrationSubtasksCallable()
- Overrides:
listMigrationSubtasksCallable
in classMigrationServiceStub
-
listMigrationSubtasksPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListMigrationSubtasksRequest,MigrationServiceClient.ListMigrationSubtasksPagedResponse> listMigrationSubtasksPagedCallable()
- Overrides:
listMigrationSubtasksPagedCallable
in classMigrationServiceStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classMigrationServiceStub
-
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
-
-