Class GrpcDeploymentStub (0.1.0)

public class GrpcDeploymentStub extends DeploymentStub

gRPC stub implementation for the Deployment service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > DeploymentStub > GrpcDeploymentStub

Static Methods

create(ClientContext clientContext)

public static final GrpcDeploymentStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
GrpcDeploymentStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcDeploymentStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory GrpcStubCallableFactory
Returns
Type Description
GrpcDeploymentStub
Exceptions
Type Description
IOException

create(DeploymentStubSettings settings)

public static final GrpcDeploymentStub create(DeploymentStubSettings settings)
Parameter
Name Description
settings DeploymentStubSettings
Returns
Type Description
GrpcDeploymentStub
Exceptions
Type Description
IOException

Constructors

GrpcDeploymentStub(DeploymentStubSettings settings, ClientContext clientContext)

protected GrpcDeploymentStub(DeploymentStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcDeploymentStub, 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.

Parameters
Name Description
settings DeploymentStubSettings
clientContext ClientContext

GrpcDeploymentStub(DeploymentStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcDeploymentStub(DeploymentStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcDeploymentStub, 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.

Parameters
Name Description
settings DeploymentStubSettings
clientContext ClientContext
callableFactory GrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

createFrameworkDeploymentCallable()

public UnaryCallable<CreateFrameworkDeploymentRequest,Operation> createFrameworkDeploymentCallable()
Returns
Type Description
UnaryCallable<CreateFrameworkDeploymentRequest,Operation>
Overrides

createFrameworkDeploymentOperationCallable()

public OperationCallable<CreateFrameworkDeploymentRequest,FrameworkDeployment,OperationMetadata> createFrameworkDeploymentOperationCallable()
Returns
Type Description
OperationCallable<CreateFrameworkDeploymentRequest,FrameworkDeployment,OperationMetadata>
Overrides

deleteFrameworkDeploymentCallable()

public UnaryCallable<DeleteFrameworkDeploymentRequest,Operation> deleteFrameworkDeploymentCallable()
Returns
Type Description
UnaryCallable<DeleteFrameworkDeploymentRequest,Operation>
Overrides

deleteFrameworkDeploymentOperationCallable()

public OperationCallable<DeleteFrameworkDeploymentRequest,Empty,OperationMetadata> deleteFrameworkDeploymentOperationCallable()
Returns
Type Description
OperationCallable<DeleteFrameworkDeploymentRequest,Empty,OperationMetadata>
Overrides

getCloudControlDeploymentCallable()

public UnaryCallable<GetCloudControlDeploymentRequest,CloudControlDeployment> getCloudControlDeploymentCallable()
Returns
Type Description
UnaryCallable<GetCloudControlDeploymentRequest,CloudControlDeployment>
Overrides

getFrameworkDeploymentCallable()

public UnaryCallable<GetFrameworkDeploymentRequest,FrameworkDeployment> getFrameworkDeploymentCallable()
Returns
Type Description
UnaryCallable<GetFrameworkDeploymentRequest,FrameworkDeployment>
Overrides

getLocationCallable()

public UnaryCallable<GetLocationRequest,Location> getLocationCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listCloudControlDeploymentsCallable()

public UnaryCallable<ListCloudControlDeploymentsRequest,ListCloudControlDeploymentsResponse> listCloudControlDeploymentsCallable()
Returns
Type Description
UnaryCallable<ListCloudControlDeploymentsRequest,ListCloudControlDeploymentsResponse>
Overrides

listCloudControlDeploymentsPagedCallable()

public UnaryCallable<ListCloudControlDeploymentsRequest,DeploymentClient.ListCloudControlDeploymentsPagedResponse> listCloudControlDeploymentsPagedCallable()
Returns
Type Description
UnaryCallable<ListCloudControlDeploymentsRequest,ListCloudControlDeploymentsPagedResponse>
Overrides

listFrameworkDeploymentsCallable()

public UnaryCallable<ListFrameworkDeploymentsRequest,ListFrameworkDeploymentsResponse> listFrameworkDeploymentsCallable()
Returns
Type Description
UnaryCallable<ListFrameworkDeploymentsRequest,ListFrameworkDeploymentsResponse>
Overrides

listFrameworkDeploymentsPagedCallable()

public UnaryCallable<ListFrameworkDeploymentsRequest,DeploymentClient.ListFrameworkDeploymentsPagedResponse> listFrameworkDeploymentsPagedCallable()
Returns
Type Description
UnaryCallable<ListFrameworkDeploymentsRequest,ListFrameworkDeploymentsPagedResponse>
Overrides

listLocationsCallable()

public UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>
Overrides

listLocationsPagedCallable()

public UnaryCallable<ListLocationsRequest,DeploymentClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()