Class GrpcEnvironmentsStub
- java.lang.Object
-
- com.google.cloud.orchestration.airflow.service.v1.stub.EnvironmentsStub
-
- com.google.cloud.orchestration.airflow.service.v1.stub.GrpcEnvironmentsStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") public class GrpcEnvironmentsStub extends EnvironmentsStub
gRPC stub implementation for the Environments service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GrpcEnvironmentsStub(EnvironmentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcEnvironmentsStub, using the given settings.protected
GrpcEnvironmentsStub(EnvironmentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcEnvironmentsStub, using the given settings.
-
Method Summary
-
Methods inherited from class com.google.cloud.orchestration.airflow.service.v1.stub.EnvironmentsStub
getHttpJsonOperationsStub
-
-
-
-
Constructor Detail
-
GrpcEnvironmentsStub
protected GrpcEnvironmentsStub(EnvironmentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcEnvironmentsStub, 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
-
GrpcEnvironmentsStub
protected GrpcEnvironmentsStub(EnvironmentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcEnvironmentsStub, 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 GrpcEnvironmentsStub create(EnvironmentsStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcEnvironmentsStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcEnvironmentsStub 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 classEnvironmentsStub
-
createEnvironmentCallable
public com.google.api.gax.rpc.UnaryCallable<CreateEnvironmentRequest,com.google.longrunning.Operation> createEnvironmentCallable()
- Overrides:
createEnvironmentCallable
in classEnvironmentsStub
-
createEnvironmentOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateEnvironmentRequest,Environment,OperationMetadata> createEnvironmentOperationCallable()
- Overrides:
createEnvironmentOperationCallable
in classEnvironmentsStub
-
getEnvironmentCallable
public com.google.api.gax.rpc.UnaryCallable<GetEnvironmentRequest,Environment> getEnvironmentCallable()
- Overrides:
getEnvironmentCallable
in classEnvironmentsStub
-
listEnvironmentsCallable
public com.google.api.gax.rpc.UnaryCallable<ListEnvironmentsRequest,ListEnvironmentsResponse> listEnvironmentsCallable()
- Overrides:
listEnvironmentsCallable
in classEnvironmentsStub
-
listEnvironmentsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListEnvironmentsRequest,EnvironmentsClient.ListEnvironmentsPagedResponse> listEnvironmentsPagedCallable()
- Overrides:
listEnvironmentsPagedCallable
in classEnvironmentsStub
-
updateEnvironmentCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateEnvironmentRequest,com.google.longrunning.Operation> updateEnvironmentCallable()
- Overrides:
updateEnvironmentCallable
in classEnvironmentsStub
-
updateEnvironmentOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateEnvironmentRequest,Environment,OperationMetadata> updateEnvironmentOperationCallable()
- Overrides:
updateEnvironmentOperationCallable
in classEnvironmentsStub
-
deleteEnvironmentCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteEnvironmentRequest,com.google.longrunning.Operation> deleteEnvironmentCallable()
- Overrides:
deleteEnvironmentCallable
in classEnvironmentsStub
-
deleteEnvironmentOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteEnvironmentRequest,com.google.protobuf.Empty,OperationMetadata> deleteEnvironmentOperationCallable()
- Overrides:
deleteEnvironmentOperationCallable
in classEnvironmentsStub
-
executeAirflowCommandCallable
public com.google.api.gax.rpc.UnaryCallable<ExecuteAirflowCommandRequest,ExecuteAirflowCommandResponse> executeAirflowCommandCallable()
- Overrides:
executeAirflowCommandCallable
in classEnvironmentsStub
-
stopAirflowCommandCallable
public com.google.api.gax.rpc.UnaryCallable<StopAirflowCommandRequest,StopAirflowCommandResponse> stopAirflowCommandCallable()
- Overrides:
stopAirflowCommandCallable
in classEnvironmentsStub
-
pollAirflowCommandCallable
public com.google.api.gax.rpc.UnaryCallable<PollAirflowCommandRequest,PollAirflowCommandResponse> pollAirflowCommandCallable()
- Overrides:
pollAirflowCommandCallable
in classEnvironmentsStub
-
saveSnapshotCallable
public com.google.api.gax.rpc.UnaryCallable<SaveSnapshotRequest,com.google.longrunning.Operation> saveSnapshotCallable()
- Overrides:
saveSnapshotCallable
in classEnvironmentsStub
-
saveSnapshotOperationCallable
public com.google.api.gax.rpc.OperationCallable<SaveSnapshotRequest,SaveSnapshotResponse,OperationMetadata> saveSnapshotOperationCallable()
- Overrides:
saveSnapshotOperationCallable
in classEnvironmentsStub
-
loadSnapshotCallable
public com.google.api.gax.rpc.UnaryCallable<LoadSnapshotRequest,com.google.longrunning.Operation> loadSnapshotCallable()
- Overrides:
loadSnapshotCallable
in classEnvironmentsStub
-
loadSnapshotOperationCallable
public com.google.api.gax.rpc.OperationCallable<LoadSnapshotRequest,LoadSnapshotResponse,OperationMetadata> loadSnapshotOperationCallable()
- Overrides:
loadSnapshotOperationCallable
in classEnvironmentsStub
-
databaseFailoverCallable
public com.google.api.gax.rpc.UnaryCallable<DatabaseFailoverRequest,com.google.longrunning.Operation> databaseFailoverCallable()
- Overrides:
databaseFailoverCallable
in classEnvironmentsStub
-
databaseFailoverOperationCallable
public com.google.api.gax.rpc.OperationCallable<DatabaseFailoverRequest,DatabaseFailoverResponse,OperationMetadata> databaseFailoverOperationCallable()
- Overrides:
databaseFailoverOperationCallable
in classEnvironmentsStub
-
fetchDatabasePropertiesCallable
public com.google.api.gax.rpc.UnaryCallable<FetchDatabasePropertiesRequest,FetchDatabasePropertiesResponse> fetchDatabasePropertiesCallable()
- Overrides:
fetchDatabasePropertiesCallable
in classEnvironmentsStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classEnvironmentsStub
-
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
-
-