Class GrpcInstanceAdminStub (6.23.4)

public class GrpcInstanceAdminStub extends InstanceAdminStub

gRPC stub implementation for the InstanceAdmin service API.

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

Inheritance

java.lang.Object > InstanceAdminStub > GrpcInstanceAdminStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(InstanceAdminStubSettings settings)

public static final GrpcInstanceAdminStub create(InstanceAdminStubSettings settings)
Parameter
NameDescription
settingsInstanceAdminStubSettings
Returns
TypeDescription
GrpcInstanceAdminStub
Exceptions
TypeDescription
IOException

Constructors

GrpcInstanceAdminStub(InstanceAdminStubSettings settings, ClientContext clientContext)

protected GrpcInstanceAdminStub(InstanceAdminStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcInstanceAdminStub, 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
settingsInstanceAdminStubSettings
clientContextClientContext

GrpcInstanceAdminStub(InstanceAdminStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcInstanceAdminStub(InstanceAdminStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcInstanceAdminStub, 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
settingsInstanceAdminStubSettings
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

createInstanceCallable()

public UnaryCallable<CreateInstanceRequest,Operation> createInstanceCallable()
Returns
TypeDescription
UnaryCallable<CreateInstanceRequest,Operation>
Overrides

createInstanceOperationCallable()

public OperationCallable<CreateInstanceRequest,Instance,CreateInstanceMetadata> createInstanceOperationCallable()
Returns
TypeDescription
OperationCallable<CreateInstanceRequest,Instance,CreateInstanceMetadata>
Overrides

deleteInstanceCallable()

public UnaryCallable<DeleteInstanceRequest,Empty> deleteInstanceCallable()
Returns
TypeDescription
UnaryCallable<DeleteInstanceRequest,Empty>
Overrides

getIamPolicyCallable()

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

getInstanceCallable()

public UnaryCallable<GetInstanceRequest,Instance> getInstanceCallable()
Returns
TypeDescription
UnaryCallable<GetInstanceRequest,Instance>
Overrides

getInstanceConfigCallable()

public UnaryCallable<GetInstanceConfigRequest,InstanceConfig> getInstanceConfigCallable()
Returns
TypeDescription
UnaryCallable<GetInstanceConfigRequest,InstanceConfig>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listInstanceConfigsCallable()

public UnaryCallable<ListInstanceConfigsRequest,ListInstanceConfigsResponse> listInstanceConfigsCallable()
Returns
TypeDescription
UnaryCallable<ListInstanceConfigsRequest,ListInstanceConfigsResponse>
Overrides

listInstanceConfigsPagedCallable()

public UnaryCallable<ListInstanceConfigsRequest,InstanceAdminClient.ListInstanceConfigsPagedResponse> listInstanceConfigsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListInstanceConfigsRequest,ListInstanceConfigsPagedResponse>
Overrides

listInstancesCallable()

public UnaryCallable<ListInstancesRequest,ListInstancesResponse> listInstancesCallable()
Returns
TypeDescription
UnaryCallable<ListInstancesRequest,ListInstancesResponse>
Overrides

listInstancesPagedCallable()

public UnaryCallable<ListInstancesRequest,InstanceAdminClient.ListInstancesPagedResponse> listInstancesPagedCallable()
Returns
TypeDescription
UnaryCallable<ListInstancesRequest,ListInstancesPagedResponse>
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

updateInstanceCallable()

public UnaryCallable<UpdateInstanceRequest,Operation> updateInstanceCallable()
Returns
TypeDescription
UnaryCallable<UpdateInstanceRequest,Operation>
Overrides

updateInstanceOperationCallable()

public OperationCallable<UpdateInstanceRequest,Instance,UpdateInstanceMetadata> updateInstanceOperationCallable()
Returns
TypeDescription
OperationCallable<UpdateInstanceRequest,Instance,UpdateInstanceMetadata>
Overrides