Class ProgramsServiceGrpc.ProgramsServiceStub (0.8.0)

public static final class ProgramsServiceGrpc.ProgramsServiceStub extends AbstractAsyncStub<ProgramsServiceGrpc.ProgramsServiceStub>

A stub to allow clients to do asynchronous rpc calls to service ProgramsService.

Service for program management. Programs provide a mechanism for adding functionality to merchant accounts. A typical example of this is the Free product listings program, which enables products from a merchant's store to be shown across Google for free. This service exposes methods to retrieve a merchant's participation in all available programs, in addition to methods for explicitly enabling or disabling participation in each program.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > ProgramsServiceGrpc.ProgramsServiceStub

Methods

build(Channel channel, CallOptions callOptions)

protected ProgramsServiceGrpc.ProgramsServiceStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
ProgramsServiceGrpc.ProgramsServiceStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

disableProgram(DisableProgramRequest request, StreamObserver<Program> responseObserver)

public void disableProgram(DisableProgramRequest request, StreamObserver<Program> responseObserver)

Disable participation in the specified program for the account. Executing this method requires admin access.

Parameters
Name Description
request DisableProgramRequest
responseObserver io.grpc.stub.StreamObserver<Program>

enableProgram(EnableProgramRequest request, StreamObserver<Program> responseObserver)

public void enableProgram(EnableProgramRequest request, StreamObserver<Program> responseObserver)

Enable participation in the specified program for the account. Executing this method requires admin access.

Parameters
Name Description
request EnableProgramRequest
responseObserver io.grpc.stub.StreamObserver<Program>

getProgram(GetProgramRequest request, StreamObserver<Program> responseObserver)

public void getProgram(GetProgramRequest request, StreamObserver<Program> responseObserver)

Retrieves the specified program for the account.

Parameters
Name Description
request GetProgramRequest
responseObserver io.grpc.stub.StreamObserver<Program>

listPrograms(ListProgramsRequest request, StreamObserver<ListProgramsResponse> responseObserver)

public void listPrograms(ListProgramsRequest request, StreamObserver<ListProgramsResponse> responseObserver)

Retrieves all programs for the account.

Parameters
Name Description
request ListProgramsRequest
responseObserver io.grpc.stub.StreamObserver<ListProgramsResponse>