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 |
---|---|---|
DisableProgramRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<Program> | The response to send back to the client (wrapped by a task). |
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 |
---|---|---|
EnableProgramRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<Program> | The response to send back to the client (wrapped by a task). |
GetProgram(GetProgramRequest, ServerCallContext)
Retrieves the specified program for the account.
Declaration
public virtual Task<Program> GetProgram(GetProgramRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
GetProgramRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<Program> | The response to send back to the client (wrapped by a task). |
ListPrograms(ListProgramsRequest, ServerCallContext)
Retrieves all programs for the account.
Declaration
public virtual Task<ListProgramsResponse> ListPrograms(ListProgramsRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
ListProgramsRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<ListProgramsResponse> | The response to send back to the client (wrapped by a task). |