Class GrpcConfigStub (0.1.0)

public class GrpcConfigStub extends ConfigStub

gRPC stub implementation for the Config service API.

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

Inheritance

java.lang.Object > ConfigStub > GrpcConfigStub

Static Methods

create(ClientContext clientContext)

public static final GrpcConfigStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcConfigStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcConfigStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcConfigStub
Exceptions
TypeDescription
IOException

create(ConfigStubSettings settings)

public static final GrpcConfigStub create(ConfigStubSettings settings)
Parameter
NameDescription
settingsConfigStubSettings
Returns
TypeDescription
GrpcConfigStub
Exceptions
TypeDescription
IOException

Constructors

GrpcConfigStub(ConfigStubSettings settings, ClientContext clientContext)

protected GrpcConfigStub(ConfigStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcConfigStub, 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
NameDescription
settingsConfigStubSettings
clientContextClientContext

GrpcConfigStub(ConfigStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcConfigStub(ConfigStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcConfigStub, 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
NameDescription
settingsConfigStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

createDeploymentCallable()

public UnaryCallable<CreateDeploymentRequest,Operation> createDeploymentCallable()
Overrides

createDeploymentOperationCallable()

public OperationCallable<CreateDeploymentRequest,Deployment,OperationMetadata> createDeploymentOperationCallable()
Overrides

deleteDeploymentCallable()

public UnaryCallable<DeleteDeploymentRequest,Operation> deleteDeploymentCallable()
Overrides

deleteDeploymentOperationCallable()

public OperationCallable<DeleteDeploymentRequest,Deployment,OperationMetadata> deleteDeploymentOperationCallable()
Overrides

deleteStatefileCallable()

public UnaryCallable<DeleteStatefileRequest,Empty> deleteStatefileCallable()
Overrides

exportDeploymentStatefileCallable()

public UnaryCallable<ExportDeploymentStatefileRequest,Statefile> exportDeploymentStatefileCallable()
Overrides

exportLockInfoCallable()

public UnaryCallable<ExportLockInfoRequest,LockInfo> exportLockInfoCallable()
Overrides

exportRevisionStatefileCallable()

public UnaryCallable<ExportRevisionStatefileRequest,Statefile> exportRevisionStatefileCallable()
Overrides

getDeploymentCallable()

public UnaryCallable<GetDeploymentRequest,Deployment> getDeploymentCallable()
Overrides

getIamPolicyCallable()

public UnaryCallable<GetIamPolicyRequest,Policy> getIamPolicyCallable()
Returns
TypeDescription
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

getLocationCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

getResourceCallable()

public UnaryCallable<GetResourceRequest,Resource> getResourceCallable()
Overrides

getRevisionCallable()

public UnaryCallable<GetRevisionRequest,Revision> getRevisionCallable()
Overrides

importStatefileCallable()

public UnaryCallable<ImportStatefileRequest,Statefile> importStatefileCallable()
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listDeploymentsCallable()

public UnaryCallable<ListDeploymentsRequest,ListDeploymentsResponse> listDeploymentsCallable()
Overrides

listDeploymentsPagedCallable()

public UnaryCallable<ListDeploymentsRequest,ConfigClient.ListDeploymentsPagedResponse> listDeploymentsPagedCallable()
Overrides

listLocationsCallable()

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

listLocationsPagedCallable()

public UnaryCallable<ListLocationsRequest,ConfigClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

listResourcesCallable()

public UnaryCallable<ListResourcesRequest,ListResourcesResponse> listResourcesCallable()
Overrides

listResourcesPagedCallable()

public UnaryCallable<ListResourcesRequest,ConfigClient.ListResourcesPagedResponse> listResourcesPagedCallable()
Overrides

listRevisionsCallable()

public UnaryCallable<ListRevisionsRequest,ListRevisionsResponse> listRevisionsCallable()
Overrides

listRevisionsPagedCallable()

public UnaryCallable<ListRevisionsRequest,ConfigClient.ListRevisionsPagedResponse> listRevisionsPagedCallable()
Overrides

lockDeploymentCallable()

public UnaryCallable<LockDeploymentRequest,Operation> lockDeploymentCallable()
Overrides

lockDeploymentOperationCallable()

public OperationCallable<LockDeploymentRequest,Deployment,OperationMetadata> lockDeploymentOperationCallable()
Overrides

setIamPolicyCallable()

public UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()
Returns
TypeDescription
UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

testIamPermissionsCallable()

public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()
Returns
TypeDescription
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
Overrides

unlockDeploymentCallable()

public UnaryCallable<UnlockDeploymentRequest,Operation> unlockDeploymentCallable()
Overrides

unlockDeploymentOperationCallable()

public OperationCallable<UnlockDeploymentRequest,Deployment,OperationMetadata> unlockDeploymentOperationCallable()
Overrides

updateDeploymentCallable()

public UnaryCallable<UpdateDeploymentRequest,Operation> updateDeploymentCallable()
Overrides

updateDeploymentOperationCallable()

public OperationCallable<UpdateDeploymentRequest,Deployment,OperationMetadata> updateDeploymentOperationCallable()
Overrides