public class HttpJsonTemplatesServiceStub extends TemplatesServiceStub
REST stub implementation for the TemplatesService service API.
This class is for advanced usage and reflects the underlying API directly.
Static Methods
create(ClientContext clientContext)
public static final HttpJsonTemplatesServiceStub create(ClientContext clientContext)
create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
public static final HttpJsonTemplatesServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
create(TemplatesServiceStubSettings settings)
public static final HttpJsonTemplatesServiceStub create(TemplatesServiceStubSettings settings)
getMethodDescriptors()
public static List<ApiMethodDescriptor> getMethodDescriptors()
Constructors
HttpJsonTemplatesServiceStub(TemplatesServiceStubSettings settings, ClientContext clientContext)
protected HttpJsonTemplatesServiceStub(TemplatesServiceStubSettings settings, ClientContext clientContext)
Constructs an instance of HttpJsonTemplatesServiceStub, 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.
HttpJsonTemplatesServiceStub(TemplatesServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
protected HttpJsonTemplatesServiceStub(TemplatesServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonTemplatesServiceStub, 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
createJobFromTemplateCallable()
public UnaryCallable<CreateJobFromTemplateRequest,Job> createJobFromTemplateCallable()
Overrides
getTemplateCallable()
public UnaryCallable<GetTemplateRequest,GetTemplateResponse> getTemplateCallable()
Overrides
isShutdown()
public boolean isShutdown()
isTerminated()
public boolean isTerminated()
launchTemplateCallable()
public UnaryCallable<LaunchTemplateRequest,LaunchTemplateResponse> launchTemplateCallable()
Overrides
shutdown()
shutdownNow()
public void shutdownNow()