Class HttpJsonPoliciesStub (1.6.22)

public class HttpJsonPoliciesStub extends PoliciesStub

REST stub implementation for the Policies service API.

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

Inheritance

java.lang.Object > PoliciesStub > HttpJsonPoliciesStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonPoliciesStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonPoliciesStub
Exceptions
TypeDescription
IOException

create(PoliciesStubSettings settings)

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

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonPoliciesStub(PoliciesStubSettings settings, ClientContext clientContext)

protected HttpJsonPoliciesStub(PoliciesStubSettings settings, ClientContext clientContext)

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

HttpJsonPoliciesStub(PoliciesStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonPoliciesStub(PoliciesStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonPoliciesStub, 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
callableFactoryHttpJsonStubCallableFactory

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

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
TypeDescription
HttpJsonOperationsStub
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