Class HttpJsonPoliciesStub (1.45.0)

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
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonPoliciesStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(PoliciesStubSettings settings)

public static final HttpJsonPoliciesStub create(PoliciesStubSettings settings)
Parameter
Name Description
settings PoliciesStubSettings
Returns
Type Description
HttpJsonPoliciesStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
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
Name Description
settings PoliciesStubSettings
clientContext ClientContext

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
Name Description
settings PoliciesStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

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

createPolicyCallable()

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

createPolicyOperationCallable()

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

deletePolicyCallable()

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

deletePolicyOperationCallable()

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

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
Type Description
HttpJsonOperationsStub
Overrides

getPolicyCallable()

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

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listPoliciesCallable()

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

listPoliciesPagedCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updatePolicyCallable()

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

updatePolicyOperationCallable()

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