Beta
This library is covered by the Pre-GA Offerings Terms
of the Terms of Service. Pre-GA libraries might have limited support,
and changes to pre-GA libraries might not be compatible with other pre-GA versions.
For more information, see the
launch stage descriptions .
public class HttpJsonCommentServiceStub extends CommentServiceStub
REST stub implementation for the CommentService service API.
This class is for advanced usage and reflects the underlying API directly.
Static Methods
public static final HttpJsonCommentServiceStub create(ClientContext clientContext)
public static final HttpJsonCommentServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
public static final HttpJsonCommentServiceStub create(CommentServiceStubSettings settings)
public static List<ApiMethodDescriptor> getMethodDescriptors()
Constructors
protected HttpJsonCommentServiceStub(CommentServiceStubSettings settings, ClientContext clientContext)
Constructs an instance of HttpJsonCommentServiceStub, 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.
protected HttpJsonCommentServiceStub(CommentServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonCommentServiceStub, 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.
Methods
public boolean awaitTermination(long duration, TimeUnit unit)
public final void close()
Overrides
public UnaryCallable<CreateCommentRequest,Comment> createCommentCallable()
Overrides
public boolean isShutdown()
public boolean isTerminated()
public UnaryCallable<ListCommentsRequest,ListCommentsResponse> listCommentsCallable()
Overrides
public UnaryCallable<ListCommentsRequest,CommentServiceClient.ListCommentsPagedResponse> listCommentsPagedCallable()
Overrides
public void shutdownNow()