Class GrpcDataPolicyServiceStub
java.lang.Object
com.google.cloud.bigquery.datapolicies.v1beta1.stub.DataPolicyServiceStub
com.google.cloud.bigquery.datapolicies.v1beta1.stub.GrpcDataPolicyServiceStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@BetaApi
@Generated("by gapic-generator-java")
public class GrpcDataPolicyServiceStub
extends DataPolicyServiceStub
gRPC stub implementation for the DataPolicyService service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcDataPolicyServiceStub(DataPolicyServiceStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcDataPolicyServiceStub, using the given settings.protectedGrpcDataPolicyServiceStub(DataPolicyServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcDataPolicyServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcDataPolicyServiceStubcreate(ClientContext clientContext) static final GrpcDataPolicyServiceStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcDataPolicyServiceStubcreate(DataPolicyServiceStubSettings settings) UnaryCallable<DeleteDataPolicyRequest,com.google.protobuf.Empty> booleanbooleanvoidshutdown()void
-
Constructor Details
-
GrpcDataPolicyServiceStub
protected GrpcDataPolicyServiceStub(DataPolicyServiceStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of GrpcDataPolicyServiceStub, 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.- Throws:
IOException
-
GrpcDataPolicyServiceStub
protected GrpcDataPolicyServiceStub(DataPolicyServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcDataPolicyServiceStub, 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.- Throws:
IOException
-
-
Method Details
-
create
public static final GrpcDataPolicyServiceStub create(DataPolicyServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
public static final GrpcDataPolicyServiceStub create(ClientContext clientContext) throws IOException - Throws:
IOException
-
create
public static final GrpcDataPolicyServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
-
createDataPolicyCallable
- Overrides:
createDataPolicyCallablein classDataPolicyServiceStub
-
updateDataPolicyCallable
- Overrides:
updateDataPolicyCallablein classDataPolicyServiceStub
-
deleteDataPolicyCallable
- Overrides:
deleteDataPolicyCallablein classDataPolicyServiceStub
-
getDataPolicyCallable
- Overrides:
getDataPolicyCallablein classDataPolicyServiceStub
-
listDataPoliciesCallable
- Overrides:
listDataPoliciesCallablein classDataPolicyServiceStub
-
listDataPoliciesPagedCallable
public UnaryCallable<ListDataPoliciesRequest,DataPolicyServiceClient.ListDataPoliciesPagedResponse> listDataPoliciesPagedCallable()- Overrides:
listDataPoliciesPagedCallablein classDataPolicyServiceStub
-
getIamPolicyCallable
- Overrides:
getIamPolicyCallablein classDataPolicyServiceStub
-
setIamPolicyCallable
- Overrides:
setIamPolicyCallablein classDataPolicyServiceStub
-
testIamPermissionsCallable
public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()- Overrides:
testIamPermissionsCallablein classDataPolicyServiceStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classDataPolicyServiceStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-