Class GrpcPoliciesStub

  • All Implemented Interfaces:
    com.google.api.gax.core.BackgroundResource, AutoCloseable

    @Generated("by gapic-generator-java")
    public class GrpcPoliciesStub
    extends PoliciesStub
    gRPC stub implementation for the Policies service API.

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

    • Constructor Detail

      • GrpcPoliciesStub

        protected GrpcPoliciesStub​(PoliciesStubSettings settings,
                                   com.google.api.gax.rpc.ClientContext clientContext)
                            throws IOException
        Constructs an instance of GrpcPoliciesStub, 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
      • GrpcPoliciesStub

        protected GrpcPoliciesStub​(PoliciesStubSettings settings,
                                   com.google.api.gax.rpc.ClientContext clientContext,
                                   com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
                            throws IOException
        Constructs an instance of GrpcPoliciesStub, 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 Detail

      • create

        public static final GrpcPoliciesStub create​(com.google.api.gax.rpc.ClientContext clientContext,
                                                    com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
                                             throws IOException
        Throws:
        IOException
      • getOperationsStub

        public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
        Overrides:
        getOperationsStub in class PoliciesStub
      • listPoliciesCallable

        public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v2.ListPoliciesRequest,​com.google.iam.v2.ListPoliciesResponse> listPoliciesCallable()
        Overrides:
        listPoliciesCallable in class PoliciesStub
      • getPolicyCallable

        public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v2.GetPolicyRequest,​com.google.iam.v2.Policy> getPolicyCallable()
        Overrides:
        getPolicyCallable in class PoliciesStub
      • createPolicyCallable

        public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v2.CreatePolicyRequest,​com.google.longrunning.Operation> createPolicyCallable()
        Overrides:
        createPolicyCallable in class PoliciesStub
      • createPolicyOperationCallable

        public com.google.api.gax.rpc.OperationCallable<com.google.iam.v2.CreatePolicyRequest,​com.google.iam.v2.Policy,​com.google.iam.v2.PolicyOperationMetadata> createPolicyOperationCallable()
        Overrides:
        createPolicyOperationCallable in class PoliciesStub
      • updatePolicyCallable

        public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v2.UpdatePolicyRequest,​com.google.longrunning.Operation> updatePolicyCallable()
        Overrides:
        updatePolicyCallable in class PoliciesStub
      • updatePolicyOperationCallable

        public com.google.api.gax.rpc.OperationCallable<com.google.iam.v2.UpdatePolicyRequest,​com.google.iam.v2.Policy,​com.google.iam.v2.PolicyOperationMetadata> updatePolicyOperationCallable()
        Overrides:
        updatePolicyOperationCallable in class PoliciesStub
      • deletePolicyCallable

        public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v2.DeletePolicyRequest,​com.google.longrunning.Operation> deletePolicyCallable()
        Overrides:
        deletePolicyCallable in class PoliciesStub
      • deletePolicyOperationCallable

        public com.google.api.gax.rpc.OperationCallable<com.google.iam.v2.DeletePolicyRequest,​com.google.iam.v2.Policy,​com.google.iam.v2.PolicyOperationMetadata> deletePolicyOperationCallable()
        Overrides:
        deletePolicyOperationCallable in class PoliciesStub
      • shutdown

        public void shutdown()
      • isShutdown

        public boolean isShutdown()
      • isTerminated

        public boolean isTerminated()
      • shutdownNow

        public void shutdownNow()