public class HttpJsonDataPolicyServiceStub extends DataPolicyServiceStubREST stub implementation for the DataPolicyService service API.
This class is for advanced usage and reflects the underlying API directly.
Static Methods
create(ClientContext clientContext)
public static final HttpJsonDataPolicyServiceStub create(ClientContext clientContext)| Name | Description |
clientContext |
ClientContext |
| Type | Description |
HttpJsonDataPolicyServiceStub |
| Type | Description |
IOException |
create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
public static final HttpJsonDataPolicyServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)| Name | Description |
clientContext |
ClientContext |
callableFactory |
HttpJsonStubCallableFactory |
| Type | Description |
HttpJsonDataPolicyServiceStub |
| Type | Description |
IOException |
create(DataPolicyServiceStubSettings settings)
public static final HttpJsonDataPolicyServiceStub create(DataPolicyServiceStubSettings settings)| Name | Description |
settings |
DataPolicyServiceStubSettings |
| Type | Description |
HttpJsonDataPolicyServiceStub |
| Type | Description |
IOException |
getMethodDescriptors()
public static List<ApiMethodDescriptor> getMethodDescriptors()| Type | Description |
List<ApiMethodDescriptor> |
Constructors
HttpJsonDataPolicyServiceStub(DataPolicyServiceStubSettings settings, ClientContext clientContext)
protected HttpJsonDataPolicyServiceStub(DataPolicyServiceStubSettings settings, ClientContext clientContext)Constructs an instance of HttpJsonDataPolicyServiceStub, 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.
| Name | Description |
settings |
DataPolicyServiceStubSettings |
clientContext |
ClientContext |
HttpJsonDataPolicyServiceStub(DataPolicyServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
protected HttpJsonDataPolicyServiceStub(DataPolicyServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)Constructs an instance of HttpJsonDataPolicyServiceStub, 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.
| Name | Description |
settings |
DataPolicyServiceStubSettings |
clientContext |
ClientContext |
callableFactory |
HttpJsonStubCallableFactory |
Methods
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)| Name | Description |
duration |
long |
unit |
TimeUnit |
| Type | Description |
boolean |
| Type | Description |
InterruptedException |
close()
public final void close()createDataPolicyCallable()
public UnaryCallable<CreateDataPolicyRequest,DataPolicy> createDataPolicyCallable()| Type | Description |
UnaryCallable<CreateDataPolicyRequest,DataPolicy> |
deleteDataPolicyCallable()
public UnaryCallable<DeleteDataPolicyRequest,Empty> deleteDataPolicyCallable()| Type | Description |
UnaryCallable<DeleteDataPolicyRequest,Empty> |
getDataPolicyCallable()
public UnaryCallable<GetDataPolicyRequest,DataPolicy> getDataPolicyCallable()| Type | Description |
UnaryCallable<GetDataPolicyRequest,DataPolicy> |
getIamPolicyCallable()
public UnaryCallable<GetIamPolicyRequest,Policy> getIamPolicyCallable()| Type | Description |
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> |
isShutdown()
public boolean isShutdown()| Type | Description |
boolean |
isTerminated()
public boolean isTerminated()| Type | Description |
boolean |
listDataPoliciesCallable()
public UnaryCallable<ListDataPoliciesRequest,ListDataPoliciesResponse> listDataPoliciesCallable()| Type | Description |
UnaryCallable<ListDataPoliciesRequest,ListDataPoliciesResponse> |
listDataPoliciesPagedCallable()
public UnaryCallable<ListDataPoliciesRequest,DataPolicyServiceClient.ListDataPoliciesPagedResponse> listDataPoliciesPagedCallable()| Type | Description |
UnaryCallable<ListDataPoliciesRequest,ListDataPoliciesPagedResponse> |
setIamPolicyCallable()
public UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()| Type | Description |
UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> |
shutdown()
public void shutdown()shutdownNow()
public void shutdownNow()testIamPermissionsCallable()
public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()| Type | Description |
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> |
updateDataPolicyCallable()
public UnaryCallable<UpdateDataPolicyRequest,DataPolicy> updateDataPolicyCallable()| Type | Description |
UnaryCallable<UpdateDataPolicyRequest,DataPolicy> |