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 GrpcProgramsServiceStub extends ProgramsServiceStub
gRPC stub implementation for the ProgramsService service API.
This class is for advanced usage and reflects the underlying API directly.
Static Methods
create(ClientContext clientContext)
public static final GrpcProgramsServiceStub create(ClientContext clientContext)
create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
public static final GrpcProgramsServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
public static final GrpcProgramsServiceStub create(ProgramsServiceStubSettings settings)
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.
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.
Methods
public boolean awaitTermination(long duration, TimeUnit unit)
public final void close()
Overrides
public UnaryCallable<DisableProgramRequest,Program> disableProgramCallable()
Overrides
public UnaryCallable<EnableProgramRequest,Program> enableProgramCallable()
Overrides
public GrpcOperationsStub getOperationsStub()
public UnaryCallable<GetProgramRequest,Program> getProgramCallable()
Overrides
public boolean isShutdown()
public boolean isTerminated()
public UnaryCallable<ListProgramsRequest,ListProgramsResponse> listProgramsCallable()
Overrides
listProgramsPagedCallable()
public UnaryCallable<ListProgramsRequest,ProgramsServiceClient.ListProgramsPagedResponse> listProgramsPagedCallable()
Overrides
public void shutdownNow()