Class GrpcPoliciesStub (1.28.0)

public class GrpcPoliciesStub extends PoliciesStub

gRPC stub implementation for the Policies service API.

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

Inheritance

java.lang.Object > PoliciesStub > GrpcPoliciesStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(PoliciesStubSettings settings)

public static final GrpcPoliciesStub create(PoliciesStubSettings settings)
Parameter
NameDescription
settingsPoliciesStubSettings
Returns
TypeDescription
GrpcPoliciesStub
Exceptions
TypeDescription
IOException

Constructors

GrpcPoliciesStub(PoliciesStubSettings settings, ClientContext clientContext)

protected GrpcPoliciesStub(PoliciesStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcPoliciesStub, 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
settingsPoliciesStubSettings
clientContextClientContext

GrpcPoliciesStub(PoliciesStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcPoliciesStub(PoliciesStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcPoliciesStub, 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
settingsPoliciesStubSettings
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

createPolicyCallable()

public UnaryCallable<CreatePolicyRequest,Operation> createPolicyCallable()
Returns
TypeDescription
UnaryCallable<CreatePolicyRequest,Operation>
Overrides

createPolicyOperationCallable()

public OperationCallable<CreatePolicyRequest,Policy,PolicyOperationMetadata> createPolicyOperationCallable()
Returns
TypeDescription
OperationCallable<CreatePolicyRequest,Policy,PolicyOperationMetadata>
Overrides

deletePolicyCallable()

public UnaryCallable<DeletePolicyRequest,Operation> deletePolicyCallable()
Returns
TypeDescription
UnaryCallable<DeletePolicyRequest,Operation>
Overrides

deletePolicyOperationCallable()

public OperationCallable<DeletePolicyRequest,Policy,PolicyOperationMetadata> deletePolicyOperationCallable()
Returns
TypeDescription
OperationCallable<DeletePolicyRequest,Policy,PolicyOperationMetadata>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

getPolicyCallable()

public UnaryCallable<GetPolicyRequest,Policy> getPolicyCallable()
Returns
TypeDescription
UnaryCallable<GetPolicyRequest,Policy>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listPoliciesCallable()

public UnaryCallable<ListPoliciesRequest,ListPoliciesResponse> listPoliciesCallable()
Returns
TypeDescription
UnaryCallable<ListPoliciesRequest,ListPoliciesResponse>
Overrides

listPoliciesPagedCallable()

public UnaryCallable<ListPoliciesRequest,PoliciesClient.ListPoliciesPagedResponse> listPoliciesPagedCallable()
Returns
TypeDescription
UnaryCallable<ListPoliciesRequest,ListPoliciesPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updatePolicyCallable()

public UnaryCallable<UpdatePolicyRequest,Operation> updatePolicyCallable()
Returns
TypeDescription
UnaryCallable<UpdatePolicyRequest,Operation>
Overrides

updatePolicyOperationCallable()

public OperationCallable<UpdatePolicyRequest,Policy,PolicyOperationMetadata> updatePolicyOperationCallable()
Returns
TypeDescription
OperationCallable<UpdatePolicyRequest,Policy,PolicyOperationMetadata>
Overrides