Show / Hide Table of Contents

Class ProgramsServiceClientImpl

ProgramsService client wrapper implementation, for convenient use.

Inheritance
object
ProgramsServiceClient
ProgramsServiceClientImpl
Inherited Members
ProgramsServiceClient.DefaultEndpoint
ProgramsServiceClient.DefaultScopes
ProgramsServiceClient.ServiceMetadata
ProgramsServiceClient.CreateAsync(CancellationToken)
ProgramsServiceClient.Create()
ProgramsServiceClient.ShutdownDefaultChannelsAsync()
ProgramsServiceClient.GetProgramAsync(GetProgramRequest, CancellationToken)
ProgramsServiceClient.GetProgram(string, CallSettings)
ProgramsServiceClient.GetProgramAsync(string, CallSettings)
ProgramsServiceClient.GetProgramAsync(string, CancellationToken)
ProgramsServiceClient.GetProgram(ProgramName, CallSettings)
ProgramsServiceClient.GetProgramAsync(ProgramName, CallSettings)
ProgramsServiceClient.GetProgramAsync(ProgramName, CancellationToken)
ProgramsServiceClient.ListPrograms(string, string, int?, CallSettings)
ProgramsServiceClient.ListProgramsAsync(string, string, int?, CallSettings)
ProgramsServiceClient.ListPrograms(AccountName, string, int?, CallSettings)
ProgramsServiceClient.ListProgramsAsync(AccountName, string, int?, CallSettings)
ProgramsServiceClient.EnableProgramAsync(EnableProgramRequest, CancellationToken)
ProgramsServiceClient.EnableProgram(string, CallSettings)
ProgramsServiceClient.EnableProgramAsync(string, CallSettings)
ProgramsServiceClient.EnableProgramAsync(string, CancellationToken)
ProgramsServiceClient.EnableProgram(ProgramName, CallSettings)
ProgramsServiceClient.EnableProgramAsync(ProgramName, CallSettings)
ProgramsServiceClient.EnableProgramAsync(ProgramName, CancellationToken)
ProgramsServiceClient.DisableProgramAsync(DisableProgramRequest, CancellationToken)
ProgramsServiceClient.DisableProgram(string, CallSettings)
ProgramsServiceClient.DisableProgramAsync(string, CallSettings)
ProgramsServiceClient.DisableProgramAsync(string, CancellationToken)
ProgramsServiceClient.DisableProgram(ProgramName, CallSettings)
ProgramsServiceClient.DisableProgramAsync(ProgramName, CallSettings)
ProgramsServiceClient.DisableProgramAsync(ProgramName, CancellationToken)
object.GetHashCode()
object.GetType()
object.ToString()
Namespace: Google.Shopping.Merchant.Accounts.V1
Assembly: Google.Shopping.Merchant.Accounts.V1.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 business'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
ProgramsService.ProgramsServiceClient grpcClient

The underlying gRPC client.

ProgramsServiceSettings settings

The base ProgramsServiceSettings used within this client.

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
ProgramsService.ProgramsServiceClient
Overrides
ProgramsServiceClient.GrpcClient

Methods

DisableProgram(DisableProgramRequest, CallSettings)

Disable participation in the specified program for the account.

Declaration
public override Program DisableProgram(DisableProgramRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
DisableProgramRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Program

The RPC response.

Overrides
ProgramsServiceClient.DisableProgram(DisableProgramRequest, CallSettings)

DisableProgramAsync(DisableProgramRequest, CallSettings)

Disable participation in the specified program for the account.

Declaration
public override Task<Program> DisableProgramAsync(DisableProgramRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
DisableProgramRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Program>

A Task containing the RPC response.

Overrides
ProgramsServiceClient.DisableProgramAsync(DisableProgramRequest, CallSettings)

EnableProgram(EnableProgramRequest, CallSettings)

Enable participation in the specified program for the account.

Declaration
public override Program EnableProgram(EnableProgramRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
EnableProgramRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Program

The RPC response.

Overrides
ProgramsServiceClient.EnableProgram(EnableProgramRequest, CallSettings)

EnableProgramAsync(EnableProgramRequest, CallSettings)

Enable participation in the specified program for the account.

Declaration
public override Task<Program> EnableProgramAsync(EnableProgramRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
EnableProgramRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Program>

A Task containing the RPC response.

Overrides
ProgramsServiceClient.EnableProgramAsync(EnableProgramRequest, CallSettings)

GetProgram(GetProgramRequest, CallSettings)

Retrieves the specified program for the account.

Declaration
public override Program GetProgram(GetProgramRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
GetProgramRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Program

The RPC response.

Overrides
ProgramsServiceClient.GetProgram(GetProgramRequest, CallSettings)

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
GetProgramRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Program>

A Task containing the RPC response.

Overrides
ProgramsServiceClient.GetProgramAsync(GetProgramRequest, CallSettings)

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
ListProgramsRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListProgramsResponse, Program>

A pageable sequence of Program resources.

Overrides
ProgramsServiceClient.ListPrograms(ListProgramsRequest, CallSettings)

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
ListProgramsRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListProgramsResponse, Program>

A pageable asynchronous sequence of Program resources.

Overrides
ProgramsServiceClient.ListProgramsAsync(ListProgramsRequest, CallSettings)
In this article
Back to top Generated by DocFX