Interface ProgramsServiceGrpc.AsyncService (0.2.0)

public static interface ProgramsServiceGrpc.AsyncService

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.

Methods

disableProgram(DisableProgramRequest request, StreamObserver<Program> responseObserver)

public default 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 default 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 default 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 default void listPrograms(ListProgramsRequest request, StreamObserver<ListProgramsResponse> responseObserver)

Retrieves all programs for the account.

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