Package com.google.cloud.support.v2
Class CommentServiceGrpc.CommentServiceStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<CommentServiceGrpc.CommentServiceStub>
com.google.cloud.support.v2.CommentServiceGrpc.CommentServiceStub
- Enclosing class:
- CommentServiceGrpc
public static final class CommentServiceGrpc.CommentServiceStub
extends io.grpc.stub.AbstractAsyncStub<CommentServiceGrpc.CommentServiceStub>
A stub to allow clients to do asynchronous rpc calls to service CommentService.
A service to manage comments on cases.
-
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 TypeMethodDescriptionprotected CommentServiceGrpc.CommentServiceStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) voidcreateComment(CreateCommentRequest request, io.grpc.stub.StreamObserver<Comment> responseObserver) Add a new comment to a case.voidlistComments(ListCommentsRequest request, io.grpc.stub.StreamObserver<ListCommentsResponse> responseObserver) List all the comments associated with a case.Methods inherited from class io.grpc.stub.AbstractAsyncStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected CommentServiceGrpc.CommentServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<CommentServiceGrpc.CommentServiceStub>
-
listComments
public void listComments(ListCommentsRequest request, io.grpc.stub.StreamObserver<ListCommentsResponse> responseObserver) List all the comments associated with a case.
-
createComment
public void createComment(CreateCommentRequest request, io.grpc.stub.StreamObserver<Comment> responseObserver) Add a new comment to a case. The comment must have the following fields set: `body`.
-