Class HttpJsonProgramsServiceStub (0.5.0)

public class HttpJsonProgramsServiceStub extends ProgramsServiceStub

REST stub implementation for the ProgramsService service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > ProgramsServiceStub > HttpJsonProgramsServiceStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonProgramsServiceStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonProgramsServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonProgramsServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
Returns
Type Description
HttpJsonProgramsServiceStub
Exceptions
Type Description
IOException

create(ProgramsServiceStubSettings settings)

public static final HttpJsonProgramsServiceStub create(ProgramsServiceStubSettings settings)
Parameter
Name Description
settings ProgramsServiceStubSettings
Returns
Type Description
HttpJsonProgramsServiceStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonProgramsServiceStub(ProgramsServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonProgramsServiceStub(ProgramsServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonProgramsServiceStub, 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.

Parameters
Name Description
settings ProgramsServiceStubSettings
clientContext ClientContext

HttpJsonProgramsServiceStub(ProgramsServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonProgramsServiceStub(ProgramsServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonProgramsServiceStub, 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.

Parameters
Name Description
settings ProgramsServiceStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

disableProgramCallable()

public UnaryCallable<DisableProgramRequest,Program> disableProgramCallable()
Returns
Type Description
UnaryCallable<DisableProgramRequest,Program>
Overrides

enableProgramCallable()

public UnaryCallable<EnableProgramRequest,Program> enableProgramCallable()
Returns
Type Description
UnaryCallable<EnableProgramRequest,Program>
Overrides

getProgramCallable()

public UnaryCallable<GetProgramRequest,Program> getProgramCallable()
Returns
Type Description
UnaryCallable<GetProgramRequest,Program>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listProgramsCallable()

public UnaryCallable<ListProgramsRequest,ListProgramsResponse> listProgramsCallable()
Returns
Type Description
UnaryCallable<ListProgramsRequest,ListProgramsResponse>
Overrides

listProgramsPagedCallable()

public UnaryCallable<ListProgramsRequest,ProgramsServiceClient.ListProgramsPagedResponse> listProgramsPagedCallable()
Returns
Type Description
UnaryCallable<ListProgramsRequest,ListProgramsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()