public class GrpcPersistentResourceServiceStub extends PersistentResourceServiceStub
gRPC stub implementation for the PersistentResourceService service API.
This class is for advanced usage and reflects the underlying API directly.
Static Methods
create(ClientContext clientContext)
public static final GrpcPersistentResourceServiceStub create(ClientContext clientContext)
create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
public static final GrpcPersistentResourceServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
public static final GrpcPersistentResourceServiceStub create(PersistentResourceServiceStubSettings settings)
Constructors
GrpcPersistentResourceServiceStub(PersistentResourceServiceStubSettings settings, ClientContext clientContext)
protected GrpcPersistentResourceServiceStub(PersistentResourceServiceStubSettings settings, ClientContext clientContext)
Constructs an instance of GrpcPersistentResourceServiceStub, 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.
GrpcPersistentResourceServiceStub(PersistentResourceServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)
protected GrpcPersistentResourceServiceStub(PersistentResourceServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcPersistentResourceServiceStub, 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.
Methods
public boolean awaitTermination(long duration, TimeUnit unit)
public final void close()
Overrides
public UnaryCallable<CreatePersistentResourceRequest,Operation> createPersistentResourceCallable()
Overrides
public OperationCallable<CreatePersistentResourceRequest,PersistentResource,CreatePersistentResourceOperationMetadata> createPersistentResourceOperationCallable()
Overrides
public UnaryCallable<DeletePersistentResourceRequest,Operation> deletePersistentResourceCallable()
Overrides
public OperationCallable<DeletePersistentResourceRequest,Empty,DeleteOperationMetadata> deletePersistentResourceOperationCallable()
Overrides
public UnaryCallable<GetIamPolicyRequest,Policy> getIamPolicyCallable()
Returns |
Type |
Description |
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> |
|
Overrides
public UnaryCallable<GetLocationRequest,Location> getLocationCallable()
Returns |
Type |
Description |
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> |
|
Overrides
public GrpcOperationsStub getOperationsStub()
Overrides
public UnaryCallable<GetPersistentResourceRequest,PersistentResource> getPersistentResourceCallable()
Overrides
public boolean isShutdown()
public boolean isTerminated()
public UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()
Returns |
Type |
Description |
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> |
|
Overrides
listLocationsPagedCallable()
public UnaryCallable<ListLocationsRequest,PersistentResourceServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Overrides
public UnaryCallable<ListPersistentResourcesRequest,ListPersistentResourcesResponse> listPersistentResourcesCallable()
Overrides
listPersistentResourcesPagedCallable()
public UnaryCallable<ListPersistentResourcesRequest,PersistentResourceServiceClient.ListPersistentResourcesPagedResponse> listPersistentResourcesPagedCallable()
Overrides
public UnaryCallable<RebootPersistentResourceRequest,Operation> rebootPersistentResourceCallable()
Overrides
public OperationCallable<RebootPersistentResourceRequest,PersistentResource,RebootPersistentResourceOperationMetadata> rebootPersistentResourceOperationCallable()
Overrides
public UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()
Returns |
Type |
Description |
UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> |
|
Overrides
public void shutdownNow()
public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()
Returns |
Type |
Description |
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> |
|
Overrides
public UnaryCallable<UpdatePersistentResourceRequest,Operation> updatePersistentResourceCallable()
Overrides
public OperationCallable<UpdatePersistentResourceRequest,PersistentResource,UpdatePersistentResourceOperationMetadata> updatePersistentResourceOperationCallable()
Overrides