Class DataPolicyServiceGrpc.DataPolicyServiceStub

java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<DataPolicyServiceGrpc.DataPolicyServiceStub>
com.google.cloud.bigquery.datapolicies.v1.DataPolicyServiceGrpc.DataPolicyServiceStub
Enclosing class:
DataPolicyServiceGrpc

public static final class DataPolicyServiceGrpc.DataPolicyServiceStub extends io.grpc.stub.AbstractAsyncStub<DataPolicyServiceGrpc.DataPolicyServiceStub>
A stub to allow clients to do asynchronous rpc calls to service DataPolicyService.
 Data Policy Service provides APIs for managing the label-policy bindings.
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub

    io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>>
  • Method Summary

    Modifier and Type
    Method
    Description
    build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
     
    void
    createDataPolicy(CreateDataPolicyRequest request, io.grpc.stub.StreamObserver<DataPolicy> responseObserver)
    Creates a new data policy under a project with the given `dataPolicyId` (used as the display name), policy tag, and data policy type.
    void
    deleteDataPolicy(DeleteDataPolicyRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
    Deletes the data policy specified by its resource name.
    void
    getDataPolicy(GetDataPolicyRequest request, io.grpc.stub.StreamObserver<DataPolicy> responseObserver)
    Gets the data policy specified by its resource name.
    void
    getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver<com.google.iam.v1.Policy> responseObserver)
    Gets the IAM policy for the specified data policy.
    void
    listDataPolicies(ListDataPoliciesRequest request, io.grpc.stub.StreamObserver<ListDataPoliciesResponse> responseObserver)
    List all of the data policies in the specified parent project.
    void
    renameDataPolicy(RenameDataPolicyRequest request, io.grpc.stub.StreamObserver<DataPolicy> responseObserver)
    Renames the id (display name) of the specified data policy.
    void
    setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver<com.google.iam.v1.Policy> responseObserver)
    Sets the IAM policy for the specified data policy.
    void
    testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, io.grpc.stub.StreamObserver<com.google.iam.v1.TestIamPermissionsResponse> responseObserver)
    Returns the caller's permission on the specified data policy resource.
    void
    updateDataPolicy(UpdateDataPolicyRequest request, io.grpc.stub.StreamObserver<DataPolicy> responseObserver)
    Updates the metadata for an existing data policy.

    Methods inherited from class io.grpc.stub.AbstractAsyncStub

    newStub, newStub

    Methods inherited from class io.grpc.stub.AbstractStub

    getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • build

      protected DataPolicyServiceGrpc.DataPolicyServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<DataPolicyServiceGrpc.DataPolicyServiceStub>
    • createDataPolicy

      public void createDataPolicy(CreateDataPolicyRequest request, io.grpc.stub.StreamObserver<DataPolicy> responseObserver)
       Creates a new data policy under a project with the given `dataPolicyId`
       (used as the display name), policy tag, and data policy type.
       
    • updateDataPolicy

      public void updateDataPolicy(UpdateDataPolicyRequest request, io.grpc.stub.StreamObserver<DataPolicy> responseObserver)
       Updates the metadata for an existing data policy. The target data policy
       can be specified by the resource name.
       
    • renameDataPolicy

      public void renameDataPolicy(RenameDataPolicyRequest request, io.grpc.stub.StreamObserver<DataPolicy> responseObserver)
       Renames the id (display name) of the specified data policy.
       
    • deleteDataPolicy

      public void deleteDataPolicy(DeleteDataPolicyRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
       Deletes the data policy specified by its resource name.
       
    • getDataPolicy

      public void getDataPolicy(GetDataPolicyRequest request, io.grpc.stub.StreamObserver<DataPolicy> responseObserver)
       Gets the data policy specified by its resource name.
       
    • listDataPolicies

      public void listDataPolicies(ListDataPoliciesRequest request, io.grpc.stub.StreamObserver<ListDataPoliciesResponse> responseObserver)
       List all of the data policies in the specified parent project.
       
    • getIamPolicy

      public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver<com.google.iam.v1.Policy> responseObserver)
       Gets the IAM policy for the specified data policy.
       
    • setIamPolicy

      public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver<com.google.iam.v1.Policy> responseObserver)
       Sets the IAM policy for the specified data policy.
       
    • testIamPermissions

      public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, io.grpc.stub.StreamObserver<com.google.iam.v1.TestIamPermissionsResponse> responseObserver)
       Returns the caller's permission on the specified data policy resource.