Class GrpcClusterControllerStub (4.34.0)

public class GrpcClusterControllerStub extends ClusterControllerStub

gRPC stub implementation for the ClusterController service API.

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

Inheritance

java.lang.Object > ClusterControllerStub > GrpcClusterControllerStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(ClusterControllerStubSettings settings)

public static final GrpcClusterControllerStub create(ClusterControllerStubSettings settings)
Parameter
NameDescription
settingsClusterControllerStubSettings
Returns
TypeDescription
GrpcClusterControllerStub
Exceptions
TypeDescription
IOException

Constructors

GrpcClusterControllerStub(ClusterControllerStubSettings settings, ClientContext clientContext)

protected GrpcClusterControllerStub(ClusterControllerStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcClusterControllerStub, 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
settingsClusterControllerStubSettings
clientContextClientContext

GrpcClusterControllerStub(ClusterControllerStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcClusterControllerStub(ClusterControllerStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcClusterControllerStub, 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
settingsClusterControllerStubSettings
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

createClusterCallable()

public UnaryCallable<CreateClusterRequest,Operation> createClusterCallable()
Returns
TypeDescription
UnaryCallable<CreateClusterRequest,Operation>
Overrides

createClusterOperationCallable()

public OperationCallable<CreateClusterRequest,Cluster,ClusterOperationMetadata> createClusterOperationCallable()
Returns
TypeDescription
OperationCallable<CreateClusterRequest,Cluster,ClusterOperationMetadata>
Overrides

deleteClusterCallable()

public UnaryCallable<DeleteClusterRequest,Operation> deleteClusterCallable()
Returns
TypeDescription
UnaryCallable<DeleteClusterRequest,Operation>
Overrides

deleteClusterOperationCallable()

public OperationCallable<DeleteClusterRequest,Empty,ClusterOperationMetadata> deleteClusterOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteClusterRequest,Empty,ClusterOperationMetadata>
Overrides

diagnoseClusterCallable()

public UnaryCallable<DiagnoseClusterRequest,Operation> diagnoseClusterCallable()
Returns
TypeDescription
UnaryCallable<DiagnoseClusterRequest,Operation>
Overrides

diagnoseClusterOperationCallable()

public OperationCallable<DiagnoseClusterRequest,DiagnoseClusterResults,ClusterOperationMetadata> diagnoseClusterOperationCallable()
Returns
TypeDescription
OperationCallable<DiagnoseClusterRequest,DiagnoseClusterResults,ClusterOperationMetadata>
Overrides

getClusterCallable()

public UnaryCallable<GetClusterRequest,Cluster> getClusterCallable()
Returns
TypeDescription
UnaryCallable<GetClusterRequest,Cluster>
Overrides

getIamPolicyCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listClustersCallable()

public UnaryCallable<ListClustersRequest,ListClustersResponse> listClustersCallable()
Returns
TypeDescription
UnaryCallable<ListClustersRequest,ListClustersResponse>
Overrides

listClustersPagedCallable()

public UnaryCallable<ListClustersRequest,ClusterControllerClient.ListClustersPagedResponse> listClustersPagedCallable()
Returns
TypeDescription
UnaryCallable<ListClustersRequest,ListClustersPagedResponse>
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()

startClusterCallable()

public UnaryCallable<StartClusterRequest,Operation> startClusterCallable()
Returns
TypeDescription
UnaryCallable<StartClusterRequest,Operation>
Overrides

startClusterOperationCallable()

public OperationCallable<StartClusterRequest,Cluster,ClusterOperationMetadata> startClusterOperationCallable()
Returns
TypeDescription
OperationCallable<StartClusterRequest,Cluster,ClusterOperationMetadata>
Overrides

stopClusterCallable()

public UnaryCallable<StopClusterRequest,Operation> stopClusterCallable()
Returns
TypeDescription
UnaryCallable<StopClusterRequest,Operation>
Overrides

stopClusterOperationCallable()

public OperationCallable<StopClusterRequest,Cluster,ClusterOperationMetadata> stopClusterOperationCallable()
Returns
TypeDescription
OperationCallable<StopClusterRequest,Cluster,ClusterOperationMetadata>
Overrides

testIamPermissionsCallable()

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

updateClusterCallable()

public UnaryCallable<UpdateClusterRequest,Operation> updateClusterCallable()
Returns
TypeDescription
UnaryCallable<UpdateClusterRequest,Operation>
Overrides

updateClusterOperationCallable()

public OperationCallable<UpdateClusterRequest,Cluster,ClusterOperationMetadata> updateClusterOperationCallable()
Returns
TypeDescription
OperationCallable<UpdateClusterRequest,Cluster,ClusterOperationMetadata>
Overrides