Class LineItemServiceClientImpl
LineItemService client wrapper implementation, for convenient use.
Inherited Members
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public sealed class LineItemServiceClientImpl : LineItemServiceClient
Remarks
Provides methods for handling LineItem objects.
Constructors
LineItemServiceClientImpl(LineItemServiceClient, LineItemServiceSettings, ILogger)
Constructs a client wrapper for the LineItemService service, with the specified gRPC client and settings.
Declaration
public LineItemServiceClientImpl(LineItemService.LineItemServiceClient grpcClient, LineItemServiceSettings settings, ILogger logger)
Parameters
| Type | Name | Description |
|---|---|---|
| LineItemService.LineItemServiceClient | grpcClient | The underlying gRPC client. |
| LineItemServiceSettings | settings | The base LineItemServiceSettings used within this client. |
| ILogger | logger | Optional ILogger to use within this client. |
Properties
GrpcClient
The underlying gRPC LineItemService client
Declaration
public override LineItemService.LineItemServiceClient GrpcClient { get; }
Property Value
| Type | Description |
|---|---|
| LineItemService.LineItemServiceClient |
Overrides
Methods
GetLineItem(GetLineItemRequest, CallSettings)
API to retrieve a LineItem object.
Declaration
public override LineItem GetLineItem(GetLineItemRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetLineItemRequest | 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 |
|---|---|
| LineItem | The RPC response. |
Overrides
GetLineItemAsync(GetLineItemRequest, CallSettings)
API to retrieve a LineItem object.
Declaration
public override Task<LineItem> GetLineItemAsync(GetLineItemRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetLineItemRequest | 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<LineItem> | A Task containing the RPC response. |
Overrides
ListLineItems(ListLineItemsRequest, CallSettings)
API to retrieve a list of LineItem objects.
Declaration
public override PagedEnumerable<ListLineItemsResponse, LineItem> ListLineItems(ListLineItemsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListLineItemsRequest | 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<ListLineItemsResponse, LineItem> | A pageable sequence of LineItem resources. |
Overrides
ListLineItemsAsync(ListLineItemsRequest, CallSettings)
API to retrieve a list of LineItem objects.
Declaration
public override PagedAsyncEnumerable<ListLineItemsResponse, LineItem> ListLineItemsAsync(ListLineItemsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListLineItemsRequest | 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<ListLineItemsResponse, LineItem> | A pageable asynchronous sequence of LineItem resources. |