Show / Hide Table of Contents

Class LineItemService.LineItemServiceClient

Client for LineItemService

Inheritance
object
ClientBase
ClientBase<LineItemService.LineItemServiceClient>
LineItemService.LineItemServiceClient
Inherited Members
ClientBase<LineItemService.LineItemServiceClient>.WithHost(string)
ClientBase.CallInvoker
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ToString()
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public class LineItemService.LineItemServiceClient : ClientBase<LineItemService.LineItemServiceClient>

Constructors

LineItemServiceClient()

Protected parameterless constructor to allow creation of test doubles.

Declaration
protected LineItemServiceClient()

LineItemServiceClient(CallInvoker)

Creates a new client for LineItemService that uses a custom CallInvoker.

Declaration
public LineItemServiceClient(CallInvoker callInvoker)
Parameters
Type Name Description
CallInvoker callInvoker

The callInvoker to use to make remote calls.

LineItemServiceClient(ChannelBase)

Creates a new client for LineItemService

Declaration
public LineItemServiceClient(ChannelBase channel)
Parameters
Type Name Description
ChannelBase channel

The channel to use to make remote calls.

LineItemServiceClient(ClientBaseConfiguration)

Protected constructor to allow creation of configured clients.

Declaration
protected LineItemServiceClient(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type Name Description
ClientBase.ClientBaseConfiguration configuration

The client configuration.

Methods

GetLineItem(GetLineItemRequest, CallOptions)

API to retrieve a LineItem object.

Declaration
public virtual LineItem GetLineItem(GetLineItemRequest request, CallOptions options)
Parameters
Type Name Description
GetLineItemRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
LineItem

The response received from the server.

GetLineItem(GetLineItemRequest, Metadata, DateTime?, CancellationToken)

API to retrieve a LineItem object.

Declaration
public virtual LineItem GetLineItem(GetLineItemRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
GetLineItemRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
LineItem

The response received from the server.

GetLineItemAsync(GetLineItemRequest, CallOptions)

API to retrieve a LineItem object.

Declaration
public virtual AsyncUnaryCall<LineItem> GetLineItemAsync(GetLineItemRequest request, CallOptions options)
Parameters
Type Name Description
GetLineItemRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<LineItem>

The call object.

GetLineItemAsync(GetLineItemRequest, Metadata, DateTime?, CancellationToken)

API to retrieve a LineItem object.

Declaration
public virtual AsyncUnaryCall<LineItem> GetLineItemAsync(GetLineItemRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
GetLineItemRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCall<LineItem>

The call object.

ListLineItems(ListLineItemsRequest, CallOptions)

API to retrieve a list of LineItem objects.

Declaration
public virtual ListLineItemsResponse ListLineItems(ListLineItemsRequest request, CallOptions options)
Parameters
Type Name Description
ListLineItemsRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
ListLineItemsResponse

The response received from the server.

ListLineItems(ListLineItemsRequest, Metadata, DateTime?, CancellationToken)

API to retrieve a list of LineItem objects.

Declaration
public virtual ListLineItemsResponse ListLineItems(ListLineItemsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
ListLineItemsRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
ListLineItemsResponse

The response received from the server.

ListLineItemsAsync(ListLineItemsRequest, CallOptions)

API to retrieve a list of LineItem objects.

Declaration
public virtual AsyncUnaryCall<ListLineItemsResponse> ListLineItemsAsync(ListLineItemsRequest request, CallOptions options)
Parameters
Type Name Description
ListLineItemsRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<ListLineItemsResponse>

The call object.

ListLineItemsAsync(ListLineItemsRequest, Metadata, DateTime?, CancellationToken)

API to retrieve a list of LineItem objects.

Declaration
public virtual AsyncUnaryCall<ListLineItemsResponse> ListLineItemsAsync(ListLineItemsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
ListLineItemsRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCall<ListLineItemsResponse>

The call object.

NewInstance(ClientBaseConfiguration)

Creates a new instance of client from given ClientBaseConfiguration.

Declaration
protected override LineItemService.LineItemServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type Name Description
ClientBase.ClientBaseConfiguration configuration
Returns
Type Description
LineItemService.LineItemServiceClient
Overrides
Grpc.Core.ClientBase<Google.Ads.AdManager.V1.LineItemService.LineItemServiceClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)
In this article
Back to top Generated by DocFX