Class GrpcOrgPolicyStub (2.3.4)

public class GrpcOrgPolicyStub extends OrgPolicyStub

gRPC stub implementation for the OrgPolicy service API.

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

Inheritance

java.lang.Object > OrgPolicyStub > GrpcOrgPolicyStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(OrgPolicyStubSettings settings)

public static final GrpcOrgPolicyStub create(OrgPolicyStubSettings settings)
Parameter
NameDescription
settingsOrgPolicyStubSettings
Returns
TypeDescription
GrpcOrgPolicyStub
Exceptions
TypeDescription
IOException

Constructors

GrpcOrgPolicyStub(OrgPolicyStubSettings settings, ClientContext clientContext)

protected GrpcOrgPolicyStub(OrgPolicyStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcOrgPolicyStub, 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
settingsOrgPolicyStubSettings
clientContextClientContext

GrpcOrgPolicyStub(OrgPolicyStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcOrgPolicyStub(OrgPolicyStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcOrgPolicyStub, 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
settingsOrgPolicyStubSettings
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,Policy> createPolicyCallable()
Returns
TypeDescription
UnaryCallable<CreatePolicyRequest,Policy>
Overrides

deletePolicyCallable()

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

getEffectivePolicyCallable()

public UnaryCallable<GetEffectivePolicyRequest,Policy> getEffectivePolicyCallable()
Returns
TypeDescription
UnaryCallable<GetEffectivePolicyRequest,Policy>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

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

listConstraintsCallable()

public UnaryCallable<ListConstraintsRequest,ListConstraintsResponse> listConstraintsCallable()
Returns
TypeDescription
UnaryCallable<ListConstraintsRequest,ListConstraintsResponse>
Overrides

listConstraintsPagedCallable()

public UnaryCallable<ListConstraintsRequest,OrgPolicyClient.ListConstraintsPagedResponse> listConstraintsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListConstraintsRequest,ListConstraintsPagedResponse>
Overrides

listPoliciesCallable()

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

listPoliciesPagedCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updatePolicyCallable()

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