Class GrpcProgramsServiceStub (0.9.0)

public class GrpcProgramsServiceStub extends ProgramsServiceStub

gRPC stub implementation for the ProgramsService service API.

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

Inheritance

java.lang.Object > ProgramsServiceStub > GrpcProgramsServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(ProgramsServiceStubSettings settings)

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

Constructors

GrpcProgramsServiceStub(ProgramsServiceStubSettings settings, ClientContext clientContext)

protected GrpcProgramsServiceStub(ProgramsServiceStubSettings settings, ClientContext clientContext)

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

GrpcProgramsServiceStub(ProgramsServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcProgramsServiceStub(ProgramsServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcProgramsServiceStub, 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 GrpcStubCallableFactory

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub

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()