Class GrpcInstanceAdminStub (6.50.1)

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

createInstanceConfigCallable()

public UnaryCallable<CreateInstanceConfigRequest,Operation> createInstanceConfigCallable()
Returns
TypeDescription
UnaryCallable<CreateInstanceConfigRequest,Operation>
Overrides

createInstanceConfigOperationCallable()

public OperationCallable<CreateInstanceConfigRequest,InstanceConfig,CreateInstanceConfigMetadata> createInstanceConfigOperationCallable()
Returns
TypeDescription
OperationCallable<CreateInstanceConfigRequest,InstanceConfig,CreateInstanceConfigMetadata>
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

deleteInstanceConfigCallable()

public UnaryCallable<DeleteInstanceConfigRequest,Empty> deleteInstanceConfigCallable()
Returns
TypeDescription
UnaryCallable<DeleteInstanceConfigRequest,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

listInstanceConfigOperationsCallable()

public UnaryCallable<ListInstanceConfigOperationsRequest,ListInstanceConfigOperationsResponse> listInstanceConfigOperationsCallable()
Returns
TypeDescription
UnaryCallable<ListInstanceConfigOperationsRequest,ListInstanceConfigOperationsResponse>
Overrides

listInstanceConfigOperationsPagedCallable()

public UnaryCallable<ListInstanceConfigOperationsRequest,InstanceAdminClient.ListInstanceConfigOperationsPagedResponse> listInstanceConfigOperationsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListInstanceConfigOperationsRequest,ListInstanceConfigOperationsPagedResponse>
Overrides

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

updateInstanceConfigCallable()

public UnaryCallable<UpdateInstanceConfigRequest,Operation> updateInstanceConfigCallable()
Returns
TypeDescription
UnaryCallable<UpdateInstanceConfigRequest,Operation>
Overrides

updateInstanceConfigOperationCallable()

public OperationCallable<UpdateInstanceConfigRequest,InstanceConfig,UpdateInstanceConfigMetadata> updateInstanceConfigOperationCallable()
Returns
TypeDescription
OperationCallable<UpdateInstanceConfigRequest,InstanceConfig,UpdateInstanceConfigMetadata>
Overrides

updateInstanceOperationCallable()

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