Class ProgramsService.ProgramsServiceBase
Base class for server-side implementations of ProgramsService
Namespace: Google.Shopping.Merchant.Accounts.V1Beta
Assembly: Google.Shopping.Merchant.Accounts.V1Beta.dll
Syntax
[BindServiceMethod(typeof(ProgramsService), "BindService")]
public abstract class ProgramsService.ProgramsServiceBase
Methods
DisableProgram(DisableProgramRequest, ServerCallContext)
Disable participation in the specified program for the account. Executing this method requires admin access.
Declaration
public virtual Task<Program> DisableProgram(DisableProgramRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
Disable |
request | The request received from the client. |
Server |
context | The context of the server-side call handler being invoked. |
Returns
EnableProgram(EnableProgramRequest, ServerCallContext)
Enable participation in the specified program for the account. Executing this method requires admin access.
Declaration
public virtual Task<Program> EnableProgram(EnableProgramRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
Enable |
request | The request received from the client. |
Server |
context | The context of the server-side call handler being invoked. |
Returns
GetProgram(GetProgramRequest, ServerCallContext)
Retrieves the specified program for the account.
Declaration
public virtual Task<Program> GetProgram(GetProgramRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
Get |
request | The request received from the client. |
Server |
context | The context of the server-side call handler being invoked. |
Returns
ListPrograms(ListProgramsRequest, ServerCallContext)
Retrieves all programs for the account.
Declaration
public virtual Task<ListProgramsResponse> ListPrograms(ListProgramsRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
List |
request | The request received from the client. |
Server |
context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<List |
The response to send back to the client (wrapped by a task). |