Class ProgramsServiceClientImpl
ProgramsService client wrapper implementation, for convenient use.
Inherited Members
Namespace: Google.Shopping.Merchant.Accounts.V1Beta
Assembly: Google.Shopping.Merchant.Accounts.V1Beta.dll
Syntax
public sealed class ProgramsServiceClientImpl : ProgramsServiceClient
Remarks
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.
Constructors
ProgramsServiceClientImpl(ProgramsServiceClient, ProgramsServiceSettings, ILogger)
Constructs a client wrapper for the ProgramsService service, with the specified gRPC client and settings.
Declaration
public ProgramsServiceClientImpl(ProgramsService.ProgramsServiceClient grpcClient, ProgramsServiceSettings settings, ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
Programs |
grpcClient | The underlying gRPC client. |
Programs |
settings | The base Programs |
ILogger | logger | Optional ILogger to use within this client. |
Properties
GrpcClient
The underlying gRPC ProgramsService client
Declaration
public override ProgramsService.ProgramsServiceClient GrpcClient { get; }
Property Value
Type | Description |
---|---|
Programs |
Overrides
Methods
DisableProgram(DisableProgramRequest, CallSettings)
Disable participation in the specified program for the account. Executing this method requires admin access.
Declaration
public override Program DisableProgram(DisableProgramRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
Disable |
request | The request object containing all of the parameters for the API call. |
Call |
callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Program | The RPC response. |
Overrides
DisableProgramAsync(DisableProgramRequest, CallSettings)
Disable participation in the specified program for the account. Executing this method requires admin access.
Declaration
public override Task<Program> DisableProgramAsync(DisableProgramRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
Disable |
request | The request object containing all of the parameters for the API call. |
Call |
callSettings | If not null, applies overrides to this RPC call. |
Returns
Overrides
EnableProgram(EnableProgramRequest, CallSettings)
Enable participation in the specified program for the account. Executing this method requires admin access.
Declaration
public override Program EnableProgram(EnableProgramRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
Enable |
request | The request object containing all of the parameters for the API call. |
Call |
callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Program | The RPC response. |
Overrides
EnableProgramAsync(EnableProgramRequest, CallSettings)
Enable participation in the specified program for the account. Executing this method requires admin access.
Declaration
public override Task<Program> EnableProgramAsync(EnableProgramRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
Enable |
request | The request object containing all of the parameters for the API call. |
Call |
callSettings | If not null, applies overrides to this RPC call. |
Returns
Overrides
GetProgram(GetProgramRequest, CallSettings)
Retrieves the specified program for the account.
Declaration
public override Program GetProgram(GetProgramRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
Get |
request | The request object containing all of the parameters for the API call. |
Call |
callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Program | The RPC response. |
Overrides
GetProgramAsync(GetProgramRequest, CallSettings)
Retrieves the specified program for the account.
Declaration
public override Task<Program> GetProgramAsync(GetProgramRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
Get |
request | The request object containing all of the parameters for the API call. |
Call |
callSettings | If not null, applies overrides to this RPC call. |
Returns
Overrides
ListPrograms(ListProgramsRequest, CallSettings)
Retrieves all programs for the account.
Declaration
public override PagedEnumerable<ListProgramsResponse, Program> ListPrograms(ListProgramsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
List |
request | The request object containing all of the parameters for the API call. |
Call |
callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Paged |
A pageable sequence of Program resources. |
Overrides
ListProgramsAsync(ListProgramsRequest, CallSettings)
Retrieves all programs for the account.
Declaration
public override PagedAsyncEnumerable<ListProgramsResponse, Program> ListProgramsAsync(ListProgramsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
List |
request | The request object containing all of the parameters for the API call. |
Call |
callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Paged |
A pageable asynchronous sequence of Program resources. |