public class HttpJsonLabelServiceStub extends LabelServiceStub
REST stub implementation for the LabelService service API.
This class is for advanced usage and reflects the underlying API directly.
Static Methods
create(LabelServiceStubSettings settings)
public static final HttpJsonLabelServiceStub create(LabelServiceStubSettings settings)
create(ClientContext clientContext)
public static final HttpJsonLabelServiceStub create(ClientContext clientContext)
create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
public static final HttpJsonLabelServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
getMethodDescriptors()
public static List<ApiMethodDescriptor> getMethodDescriptors()
Constructors
HttpJsonLabelServiceStub(LabelServiceStubSettings settings, ClientContext clientContext)
protected HttpJsonLabelServiceStub(LabelServiceStubSettings settings, ClientContext clientContext)
Constructs an instance of HttpJsonLabelServiceStub, 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.
HttpJsonLabelServiceStub(LabelServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
protected HttpJsonLabelServiceStub(LabelServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonLabelServiceStub, 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
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)
close()
public final void close()
Overrides
getLabelCallable()
public UnaryCallable<GetLabelRequest,Label> getLabelCallable()
Overrides
isShutdown()
public boolean isShutdown()
isTerminated()
public boolean isTerminated()
listLabelsCallable()
public UnaryCallable<ListLabelsRequest,ListLabelsResponse> listLabelsCallable()
Overrides
listLabelsPagedCallable()
public UnaryCallable<ListLabelsRequest,LabelServiceClient.ListLabelsPagedResponse> listLabelsPagedCallable()
Overrides
shutdown()
shutdownNow()
public void shutdownNow()