/** * <pre> * Returns permissions that a caller has on the specified resource. * If the resource does not exist, this will return an empty set of * permissions, not a NOT_FOUND error. * </pre> */ public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, io.grpc.stub.StreamObserver<com.google.iam.v1.TestIamPermissionsResponse> responseObserver) { asyncUnaryCall( getChannel().newCall(getTestIamPermissionsMethodHelper(), getCallOptions()), request, responseObserver); } }
@java.lang.Override protected IAMPolicyStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new IAMPolicyStub(channel, callOptions); }
/** * Creates a new async stub that supports all call types for the service */ public static IAMPolicyStub newStub(io.grpc.Channel channel) { return new IAMPolicyStub(channel); }
/** * <pre> * Gets the access control policy for a resource. * Returns an empty policy if the resource exists and does not have a policy * set. * </pre> */ public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver<com.google.iam.v1.Policy> responseObserver) { asyncUnaryCall( getChannel().newCall(getGetIamPolicyMethodHelper(), getCallOptions()), request, responseObserver); }
/** * <pre> * Sets the access control policy on the specified resource. Replaces any * existing policy. * </pre> */ public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver<com.google.iam.v1.Policy> responseObserver) { asyncUnaryCall( getChannel().newCall(getSetIamPolicyMethodHelper(), getCallOptions()), request, responseObserver); }