Class GrpcPersistentResourceServiceStub (3.53.0)

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.

Inheritance

java.lang.Object > PersistentResourceServiceStub > GrpcPersistentResourceServiceStub

Static Methods

create(ClientContext clientContext)

public static final GrpcPersistentResourceServiceStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
GrpcPersistentResourceServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcPersistentResourceServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory GrpcStubCallableFactory
Returns
Type Description
GrpcPersistentResourceServiceStub
Exceptions
Type Description
IOException

create(PersistentResourceServiceStubSettings settings)

public static final GrpcPersistentResourceServiceStub create(PersistentResourceServiceStubSettings settings)
Parameter
Name Description
settings PersistentResourceServiceStubSettings
Returns
Type Description
GrpcPersistentResourceServiceStub
Exceptions
Type Description
IOException

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.

Parameters
Name Description
settings PersistentResourceServiceStubSettings
clientContext ClientContext

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.

Parameters
Name Description
settings PersistentResourceServiceStubSettings
clientContext ClientContext
callableFactory GrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

createPersistentResourceCallable()

public UnaryCallable<CreatePersistentResourceRequest,Operation> createPersistentResourceCallable()
Returns
Type Description
UnaryCallable<CreatePersistentResourceRequest,Operation>
Overrides

createPersistentResourceOperationCallable()

public OperationCallable<CreatePersistentResourceRequest,PersistentResource,CreatePersistentResourceOperationMetadata> createPersistentResourceOperationCallable()
Returns
Type Description
OperationCallable<CreatePersistentResourceRequest,PersistentResource,CreatePersistentResourceOperationMetadata>
Overrides

deletePersistentResourceCallable()

public UnaryCallable<DeletePersistentResourceRequest,Operation> deletePersistentResourceCallable()
Returns
Type Description
UnaryCallable<DeletePersistentResourceRequest,Operation>
Overrides

deletePersistentResourceOperationCallable()

public OperationCallable<DeletePersistentResourceRequest,Empty,DeleteOperationMetadata> deletePersistentResourceOperationCallable()
Returns
Type Description
OperationCallable<DeletePersistentResourceRequest,Empty,DeleteOperationMetadata>
Overrides

getIamPolicyCallable()

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

getLocationCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub
Overrides

getPersistentResourceCallable()

public UnaryCallable<GetPersistentResourceRequest,PersistentResource> getPersistentResourceCallable()
Returns
Type Description
UnaryCallable<GetPersistentResourceRequest,PersistentResource>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listLocationsCallable()

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()
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

listPersistentResourcesCallable()

public UnaryCallable<ListPersistentResourcesRequest,ListPersistentResourcesResponse> listPersistentResourcesCallable()
Returns
Type Description
UnaryCallable<ListPersistentResourcesRequest,ListPersistentResourcesResponse>
Overrides

listPersistentResourcesPagedCallable()

public UnaryCallable<ListPersistentResourcesRequest,PersistentResourceServiceClient.ListPersistentResourcesPagedResponse> listPersistentResourcesPagedCallable()
Returns
Type Description
UnaryCallable<ListPersistentResourcesRequest,ListPersistentResourcesPagedResponse>
Overrides

rebootPersistentResourceCallable()

public UnaryCallable<RebootPersistentResourceRequest,Operation> rebootPersistentResourceCallable()
Returns
Type Description
UnaryCallable<RebootPersistentResourceRequest,Operation>
Overrides

rebootPersistentResourceOperationCallable()

public OperationCallable<RebootPersistentResourceRequest,PersistentResource,RebootPersistentResourceOperationMetadata> rebootPersistentResourceOperationCallable()
Returns
Type Description
OperationCallable<RebootPersistentResourceRequest,PersistentResource,RebootPersistentResourceOperationMetadata>
Overrides

setIamPolicyCallable()

public UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()
Returns
Type Description
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
Type Description
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
Overrides

updatePersistentResourceCallable()

public UnaryCallable<UpdatePersistentResourceRequest,Operation> updatePersistentResourceCallable()
Returns
Type Description
UnaryCallable<UpdatePersistentResourceRequest,Operation>
Overrides

updatePersistentResourceOperationCallable()

public OperationCallable<UpdatePersistentResourceRequest,PersistentResource,UpdatePersistentResourceOperationMetadata> updatePersistentResourceOperationCallable()
Returns
Type Description
OperationCallable<UpdatePersistentResourceRequest,PersistentResource,UpdatePersistentResourceOperationMetadata>
Overrides