Show / Hide Table of Contents

Class LineItemServiceClient

LineItemService client wrapper, for convenient use.

Inheritance
object
LineItemServiceClient
LineItemServiceClientImpl
Inherited Members
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ToString()
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public abstract class LineItemServiceClient
Remarks

Provides methods for handling LineItem objects.

Properties

DefaultEndpoint

The default endpoint for the LineItemService service, which is a host of "admanager.googleapis.com" and a port of 443.

Declaration
public static string DefaultEndpoint { get; }
Property Value
Type Description
string

DefaultScopes

The default LineItemService scopes.

Declaration
public static IReadOnlyList<string> DefaultScopes { get; }
Property Value
Type Description
IReadOnlyList<string>
Remarks

The default LineItemService scopes are:

  • https://www.googleapis.com/auth/admanager
  • https://www.googleapis.com/auth/admanager.readonly

GrpcClient

The underlying gRPC LineItemService client

Declaration
public virtual LineItemService.LineItemServiceClient GrpcClient { get; }
Property Value
Type Description
LineItemService.LineItemServiceClient

ServiceMetadata

The service metadata associated with this client type.

Declaration
public static ServiceMetadata ServiceMetadata { get; }
Property Value
Type Description
ServiceMetadata

Methods

BatchActivateLineItems(BatchActivateLineItemsRequest, CallSettings)

Batch activates LineItem objects.

Declaration
public virtual BatchActivateLineItemsResponse BatchActivateLineItems(BatchActivateLineItemsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchActivateLineItemsRequest 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
BatchActivateLineItemsResponse

The RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = LineItemServiceClient.Create();
// Initialize request argument(s)
BatchActivateLineItemsRequest request = new BatchActivateLineItemsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    LineItemNames =
    {
        LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
    },
};
// Make the request
BatchActivateLineItemsResponse response = lineItemServiceClient.BatchActivateLineItems(request);

BatchActivateLineItems(NetworkName, IEnumerable<LineItemName>, CallSettings)

Batch activates LineItem objects.

Declaration
public virtual BatchActivateLineItemsResponse BatchActivateLineItems(NetworkName parent, IEnumerable<LineItemName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<LineItemName> names

Required. The names of the LineItem objects to activate. Format: networks/{network_code}/lineItems/{line_item}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchActivateLineItemsResponse

The RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = LineItemServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<LineItemName> names = new LineItemName[]
{
    LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
};
// Make the request
BatchActivateLineItemsResponse response = lineItemServiceClient.BatchActivateLineItems(parent, names);

BatchActivateLineItems(string, IEnumerable<string>, CallSettings)

Batch activates LineItem objects.

Declaration
public virtual BatchActivateLineItemsResponse BatchActivateLineItems(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<string> names

Required. The names of the LineItem objects to activate. Format: networks/{network_code}/lineItems/{line_item}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchActivateLineItemsResponse

The RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = LineItemServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/lineItems/[LINE_ITEM]",
};
// Make the request
BatchActivateLineItemsResponse response = lineItemServiceClient.BatchActivateLineItems(parent, names);

BatchActivateLineItemsAsync(BatchActivateLineItemsRequest, CallSettings)

Batch activates LineItem objects.

Declaration
public virtual Task<BatchActivateLineItemsResponse> BatchActivateLineItemsAsync(BatchActivateLineItemsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchActivateLineItemsRequest 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<BatchActivateLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
BatchActivateLineItemsRequest request = new BatchActivateLineItemsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    LineItemNames =
    {
        LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
    },
};
// Make the request
BatchActivateLineItemsResponse response = await lineItemServiceClient.BatchActivateLineItemsAsync(request);

BatchActivateLineItemsAsync(BatchActivateLineItemsRequest, CancellationToken)

Batch activates LineItem objects.

Declaration
public virtual Task<BatchActivateLineItemsResponse> BatchActivateLineItemsAsync(BatchActivateLineItemsRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchActivateLineItemsRequest request

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

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchActivateLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
BatchActivateLineItemsRequest request = new BatchActivateLineItemsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    LineItemNames =
    {
        LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
    },
};
// Make the request
BatchActivateLineItemsResponse response = await lineItemServiceClient.BatchActivateLineItemsAsync(request);

BatchActivateLineItemsAsync(NetworkName, IEnumerable<LineItemName>, CallSettings)

Batch activates LineItem objects.

Declaration
public virtual Task<BatchActivateLineItemsResponse> BatchActivateLineItemsAsync(NetworkName parent, IEnumerable<LineItemName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<LineItemName> names

Required. The names of the LineItem objects to activate. Format: networks/{network_code}/lineItems/{line_item}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchActivateLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<LineItemName> names = new LineItemName[]
{
    LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
};
// Make the request
BatchActivateLineItemsResponse response = await lineItemServiceClient.BatchActivateLineItemsAsync(parent, names);

BatchActivateLineItemsAsync(NetworkName, IEnumerable<LineItemName>, CancellationToken)

Batch activates LineItem objects.

Declaration
public virtual Task<BatchActivateLineItemsResponse> BatchActivateLineItemsAsync(NetworkName parent, IEnumerable<LineItemName> names, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<LineItemName> names

Required. The names of the LineItem objects to activate. Format: networks/{network_code}/lineItems/{line_item}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchActivateLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<LineItemName> names = new LineItemName[]
{
    LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
};
// Make the request
BatchActivateLineItemsResponse response = await lineItemServiceClient.BatchActivateLineItemsAsync(parent, names);

BatchActivateLineItemsAsync(string, IEnumerable<string>, CallSettings)

Batch activates LineItem objects.

Declaration
public virtual Task<BatchActivateLineItemsResponse> BatchActivateLineItemsAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<string> names

Required. The names of the LineItem objects to activate. Format: networks/{network_code}/lineItems/{line_item}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchActivateLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/lineItems/[LINE_ITEM]",
};
// Make the request
BatchActivateLineItemsResponse response = await lineItemServiceClient.BatchActivateLineItemsAsync(parent, names);

BatchActivateLineItemsAsync(string, IEnumerable<string>, CancellationToken)

Batch activates LineItem objects.

Declaration
public virtual Task<BatchActivateLineItemsResponse> BatchActivateLineItemsAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<string> names

Required. The names of the LineItem objects to activate. Format: networks/{network_code}/lineItems/{line_item}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchActivateLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/lineItems/[LINE_ITEM]",
};
// Make the request
BatchActivateLineItemsResponse response = await lineItemServiceClient.BatchActivateLineItemsAsync(parent, names);

BatchArchiveLineItems(BatchArchiveLineItemsRequest, CallSettings)

Batch archives LineItem objects.

Declaration
public virtual BatchArchiveLineItemsResponse BatchArchiveLineItems(BatchArchiveLineItemsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchArchiveLineItemsRequest 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
BatchArchiveLineItemsResponse

The RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = LineItemServiceClient.Create();
// Initialize request argument(s)
BatchArchiveLineItemsRequest request = new BatchArchiveLineItemsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    LineItemNames =
    {
        LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
    },
};
// Make the request
BatchArchiveLineItemsResponse response = lineItemServiceClient.BatchArchiveLineItems(request);

BatchArchiveLineItems(NetworkName, IEnumerable<LineItemName>, CallSettings)

Batch archives LineItem objects.

Declaration
public virtual BatchArchiveLineItemsResponse BatchArchiveLineItems(NetworkName parent, IEnumerable<LineItemName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<LineItemName> names

Required. The names of the LineItem objects to archive. Format: networks/{network_code}/lineItems/{line_item}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchArchiveLineItemsResponse

The RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = LineItemServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<LineItemName> names = new LineItemName[]
{
    LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
};
// Make the request
BatchArchiveLineItemsResponse response = lineItemServiceClient.BatchArchiveLineItems(parent, names);

BatchArchiveLineItems(string, IEnumerable<string>, CallSettings)

Batch archives LineItem objects.

Declaration
public virtual BatchArchiveLineItemsResponse BatchArchiveLineItems(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<string> names

Required. The names of the LineItem objects to archive. Format: networks/{network_code}/lineItems/{line_item}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchArchiveLineItemsResponse

The RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = LineItemServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/lineItems/[LINE_ITEM]",
};
// Make the request
BatchArchiveLineItemsResponse response = lineItemServiceClient.BatchArchiveLineItems(parent, names);

BatchArchiveLineItemsAsync(BatchArchiveLineItemsRequest, CallSettings)

Batch archives LineItem objects.

Declaration
public virtual Task<BatchArchiveLineItemsResponse> BatchArchiveLineItemsAsync(BatchArchiveLineItemsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchArchiveLineItemsRequest 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<BatchArchiveLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
BatchArchiveLineItemsRequest request = new BatchArchiveLineItemsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    LineItemNames =
    {
        LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
    },
};
// Make the request
BatchArchiveLineItemsResponse response = await lineItemServiceClient.BatchArchiveLineItemsAsync(request);

BatchArchiveLineItemsAsync(BatchArchiveLineItemsRequest, CancellationToken)

Batch archives LineItem objects.

Declaration
public virtual Task<BatchArchiveLineItemsResponse> BatchArchiveLineItemsAsync(BatchArchiveLineItemsRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchArchiveLineItemsRequest request

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

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchArchiveLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
BatchArchiveLineItemsRequest request = new BatchArchiveLineItemsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    LineItemNames =
    {
        LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
    },
};
// Make the request
BatchArchiveLineItemsResponse response = await lineItemServiceClient.BatchArchiveLineItemsAsync(request);

BatchArchiveLineItemsAsync(NetworkName, IEnumerable<LineItemName>, CallSettings)

Batch archives LineItem objects.

Declaration
public virtual Task<BatchArchiveLineItemsResponse> BatchArchiveLineItemsAsync(NetworkName parent, IEnumerable<LineItemName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<LineItemName> names

Required. The names of the LineItem objects to archive. Format: networks/{network_code}/lineItems/{line_item}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchArchiveLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<LineItemName> names = new LineItemName[]
{
    LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
};
// Make the request
BatchArchiveLineItemsResponse response = await lineItemServiceClient.BatchArchiveLineItemsAsync(parent, names);

BatchArchiveLineItemsAsync(NetworkName, IEnumerable<LineItemName>, CancellationToken)

Batch archives LineItem objects.

Declaration
public virtual Task<BatchArchiveLineItemsResponse> BatchArchiveLineItemsAsync(NetworkName parent, IEnumerable<LineItemName> names, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<LineItemName> names

Required. The names of the LineItem objects to archive. Format: networks/{network_code}/lineItems/{line_item}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchArchiveLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<LineItemName> names = new LineItemName[]
{
    LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
};
// Make the request
BatchArchiveLineItemsResponse response = await lineItemServiceClient.BatchArchiveLineItemsAsync(parent, names);

BatchArchiveLineItemsAsync(string, IEnumerable<string>, CallSettings)

Batch archives LineItem objects.

Declaration
public virtual Task<BatchArchiveLineItemsResponse> BatchArchiveLineItemsAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<string> names

Required. The names of the LineItem objects to archive. Format: networks/{network_code}/lineItems/{line_item}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchArchiveLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/lineItems/[LINE_ITEM]",
};
// Make the request
BatchArchiveLineItemsResponse response = await lineItemServiceClient.BatchArchiveLineItemsAsync(parent, names);

BatchArchiveLineItemsAsync(string, IEnumerable<string>, CancellationToken)

Batch archives LineItem objects.

Declaration
public virtual Task<BatchArchiveLineItemsResponse> BatchArchiveLineItemsAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<string> names

Required. The names of the LineItem objects to archive. Format: networks/{network_code}/lineItems/{line_item}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchArchiveLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/lineItems/[LINE_ITEM]",
};
// Make the request
BatchArchiveLineItemsResponse response = await lineItemServiceClient.BatchArchiveLineItemsAsync(parent, names);

BatchCreateLineItems(BatchCreateLineItemsRequest, CallSettings)

Creates LineItem objects.

Declaration
public virtual BatchCreateLineItemsResponse BatchCreateLineItems(BatchCreateLineItemsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchCreateLineItemsRequest 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
BatchCreateLineItemsResponse

The RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = LineItemServiceClient.Create();
// Initialize request argument(s)
BatchCreateLineItemsRequest request = new BatchCreateLineItemsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Requests =
    {
        new CreateLineItemRequest(),
    },
};
// Make the request
BatchCreateLineItemsResponse response = lineItemServiceClient.BatchCreateLineItems(request);

BatchCreateLineItems(NetworkName, IEnumerable<CreateLineItemRequest>, CallSettings)

Creates LineItem objects.

Declaration
public virtual BatchCreateLineItemsResponse BatchCreateLineItems(NetworkName parent, IEnumerable<CreateLineItemRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where LineItems will be created. Format: networks/{network_code} The parent field in the CreateLineItemRequest must match this field.

IEnumerable<CreateLineItemRequest> requests

Required. The LineItem objects to create. A maximum of 100 objects can be created in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchCreateLineItemsResponse

The RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = LineItemServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<CreateLineItemRequest> requests = new CreateLineItemRequest[]
{
    new CreateLineItemRequest(),
};
// Make the request
BatchCreateLineItemsResponse response = lineItemServiceClient.BatchCreateLineItems(parent, requests);

BatchCreateLineItems(string, IEnumerable<CreateLineItemRequest>, CallSettings)

Creates LineItem objects.

Declaration
public virtual BatchCreateLineItemsResponse BatchCreateLineItems(string parent, IEnumerable<CreateLineItemRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where LineItems will be created. Format: networks/{network_code} The parent field in the CreateLineItemRequest must match this field.

IEnumerable<CreateLineItemRequest> requests

Required. The LineItem objects to create. A maximum of 100 objects can be created in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchCreateLineItemsResponse

The RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = LineItemServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<CreateLineItemRequest> requests = new CreateLineItemRequest[]
{
    new CreateLineItemRequest(),
};
// Make the request
BatchCreateLineItemsResponse response = lineItemServiceClient.BatchCreateLineItems(parent, requests);

BatchCreateLineItemsAsync(BatchCreateLineItemsRequest, CallSettings)

Creates LineItem objects.

Declaration
public virtual Task<BatchCreateLineItemsResponse> BatchCreateLineItemsAsync(BatchCreateLineItemsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchCreateLineItemsRequest 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<BatchCreateLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
BatchCreateLineItemsRequest request = new BatchCreateLineItemsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Requests =
    {
        new CreateLineItemRequest(),
    },
};
// Make the request
BatchCreateLineItemsResponse response = await lineItemServiceClient.BatchCreateLineItemsAsync(request);

BatchCreateLineItemsAsync(BatchCreateLineItemsRequest, CancellationToken)

Creates LineItem objects.

Declaration
public virtual Task<BatchCreateLineItemsResponse> BatchCreateLineItemsAsync(BatchCreateLineItemsRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchCreateLineItemsRequest request

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

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchCreateLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
BatchCreateLineItemsRequest request = new BatchCreateLineItemsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Requests =
    {
        new CreateLineItemRequest(),
    },
};
// Make the request
BatchCreateLineItemsResponse response = await lineItemServiceClient.BatchCreateLineItemsAsync(request);

BatchCreateLineItemsAsync(NetworkName, IEnumerable<CreateLineItemRequest>, CallSettings)

Creates LineItem objects.

Declaration
public virtual Task<BatchCreateLineItemsResponse> BatchCreateLineItemsAsync(NetworkName parent, IEnumerable<CreateLineItemRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where LineItems will be created. Format: networks/{network_code} The parent field in the CreateLineItemRequest must match this field.

IEnumerable<CreateLineItemRequest> requests

Required. The LineItem objects to create. A maximum of 100 objects can be created in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchCreateLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<CreateLineItemRequest> requests = new CreateLineItemRequest[]
{
    new CreateLineItemRequest(),
};
// Make the request
BatchCreateLineItemsResponse response = await lineItemServiceClient.BatchCreateLineItemsAsync(parent, requests);

BatchCreateLineItemsAsync(NetworkName, IEnumerable<CreateLineItemRequest>, CancellationToken)

Creates LineItem objects.

Declaration
public virtual Task<BatchCreateLineItemsResponse> BatchCreateLineItemsAsync(NetworkName parent, IEnumerable<CreateLineItemRequest> requests, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where LineItems will be created. Format: networks/{network_code} The parent field in the CreateLineItemRequest must match this field.

IEnumerable<CreateLineItemRequest> requests

Required. The LineItem objects to create. A maximum of 100 objects can be created in a batch.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchCreateLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<CreateLineItemRequest> requests = new CreateLineItemRequest[]
{
    new CreateLineItemRequest(),
};
// Make the request
BatchCreateLineItemsResponse response = await lineItemServiceClient.BatchCreateLineItemsAsync(parent, requests);

BatchCreateLineItemsAsync(string, IEnumerable<CreateLineItemRequest>, CallSettings)

Creates LineItem objects.

Declaration
public virtual Task<BatchCreateLineItemsResponse> BatchCreateLineItemsAsync(string parent, IEnumerable<CreateLineItemRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where LineItems will be created. Format: networks/{network_code} The parent field in the CreateLineItemRequest must match this field.

IEnumerable<CreateLineItemRequest> requests

Required. The LineItem objects to create. A maximum of 100 objects can be created in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchCreateLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<CreateLineItemRequest> requests = new CreateLineItemRequest[]
{
    new CreateLineItemRequest(),
};
// Make the request
BatchCreateLineItemsResponse response = await lineItemServiceClient.BatchCreateLineItemsAsync(parent, requests);

BatchCreateLineItemsAsync(string, IEnumerable<CreateLineItemRequest>, CancellationToken)

Creates LineItem objects.

Declaration
public virtual Task<BatchCreateLineItemsResponse> BatchCreateLineItemsAsync(string parent, IEnumerable<CreateLineItemRequest> requests, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. The parent resource where LineItems will be created. Format: networks/{network_code} The parent field in the CreateLineItemRequest must match this field.

IEnumerable<CreateLineItemRequest> requests

Required. The LineItem objects to create. A maximum of 100 objects can be created in a batch.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchCreateLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<CreateLineItemRequest> requests = new CreateLineItemRequest[]
{
    new CreateLineItemRequest(),
};
// Make the request
BatchCreateLineItemsResponse response = await lineItemServiceClient.BatchCreateLineItemsAsync(parent, requests);

BatchDeleteLineItems(BatchDeleteLineItemsRequest, CallSettings)

Batch deletes LineItem objects.

Declaration
public virtual void BatchDeleteLineItems(BatchDeleteLineItemsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchDeleteLineItemsRequest request

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = LineItemServiceClient.Create();
// Initialize request argument(s)
BatchDeleteLineItemsRequest request = new BatchDeleteLineItemsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    LineItemNames =
    {
        LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
    },
};
// Make the request
lineItemServiceClient.BatchDeleteLineItems(request);

BatchDeleteLineItems(NetworkName, IEnumerable<LineItemName>, CallSettings)

Batch deletes LineItem objects.

Declaration
public virtual void BatchDeleteLineItems(NetworkName parent, IEnumerable<LineItemName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<LineItemName> names

Required. The names of the LineItem objects to delete. Format: networks/{network_code}/lineItems/{line_item}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = LineItemServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<LineItemName> names = new LineItemName[]
{
    LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
};
// Make the request
lineItemServiceClient.BatchDeleteLineItems(parent, names);

BatchDeleteLineItems(string, IEnumerable<string>, CallSettings)

Batch deletes LineItem objects.

Declaration
public virtual void BatchDeleteLineItems(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<string> names

Required. The names of the LineItem objects to delete. Format: networks/{network_code}/lineItems/{line_item}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = LineItemServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/lineItems/[LINE_ITEM]",
};
// Make the request
lineItemServiceClient.BatchDeleteLineItems(parent, names);

BatchDeleteLineItemsAsync(BatchDeleteLineItemsRequest, CallSettings)

Batch deletes LineItem objects.

Declaration
public virtual Task BatchDeleteLineItemsAsync(BatchDeleteLineItemsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchDeleteLineItemsRequest 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

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
BatchDeleteLineItemsRequest request = new BatchDeleteLineItemsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    LineItemNames =
    {
        LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
    },
};
// Make the request
await lineItemServiceClient.BatchDeleteLineItemsAsync(request);

BatchDeleteLineItemsAsync(BatchDeleteLineItemsRequest, CancellationToken)

Batch deletes LineItem objects.

Declaration
public virtual Task BatchDeleteLineItemsAsync(BatchDeleteLineItemsRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchDeleteLineItemsRequest request

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

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
BatchDeleteLineItemsRequest request = new BatchDeleteLineItemsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    LineItemNames =
    {
        LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
    },
};
// Make the request
await lineItemServiceClient.BatchDeleteLineItemsAsync(request);

BatchDeleteLineItemsAsync(NetworkName, IEnumerable<LineItemName>, CallSettings)

Batch deletes LineItem objects.

Declaration
public virtual Task BatchDeleteLineItemsAsync(NetworkName parent, IEnumerable<LineItemName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<LineItemName> names

Required. The names of the LineItem objects to delete. Format: networks/{network_code}/lineItems/{line_item}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<LineItemName> names = new LineItemName[]
{
    LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
};
// Make the request
await lineItemServiceClient.BatchDeleteLineItemsAsync(parent, names);

BatchDeleteLineItemsAsync(NetworkName, IEnumerable<LineItemName>, CancellationToken)

Batch deletes LineItem objects.

Declaration
public virtual Task BatchDeleteLineItemsAsync(NetworkName parent, IEnumerable<LineItemName> names, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<LineItemName> names

Required. The names of the LineItem objects to delete. Format: networks/{network_code}/lineItems/{line_item}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<LineItemName> names = new LineItemName[]
{
    LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
};
// Make the request
await lineItemServiceClient.BatchDeleteLineItemsAsync(parent, names);

BatchDeleteLineItemsAsync(string, IEnumerable<string>, CallSettings)

Batch deletes LineItem objects.

Declaration
public virtual Task BatchDeleteLineItemsAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<string> names

Required. The names of the LineItem objects to delete. Format: networks/{network_code}/lineItems/{line_item}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/lineItems/[LINE_ITEM]",
};
// Make the request
await lineItemServiceClient.BatchDeleteLineItemsAsync(parent, names);

BatchDeleteLineItemsAsync(string, IEnumerable<string>, CancellationToken)

Batch deletes LineItem objects.

Declaration
public virtual Task BatchDeleteLineItemsAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<string> names

Required. The names of the LineItem objects to delete. Format: networks/{network_code}/lineItems/{line_item}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/lineItems/[LINE_ITEM]",
};
// Make the request
await lineItemServiceClient.BatchDeleteLineItemsAsync(parent, names);

BatchPauseLineItems(BatchPauseLineItemsRequest, CallSettings)

Batch pauses LineItem objects.

Declaration
public virtual BatchPauseLineItemsResponse BatchPauseLineItems(BatchPauseLineItemsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchPauseLineItemsRequest 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
BatchPauseLineItemsResponse

The RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = LineItemServiceClient.Create();
// Initialize request argument(s)
BatchPauseLineItemsRequest request = new BatchPauseLineItemsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    LineItemNames =
    {
        LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
    },
};
// Make the request
BatchPauseLineItemsResponse response = lineItemServiceClient.BatchPauseLineItems(request);

BatchPauseLineItems(NetworkName, IEnumerable<LineItemName>, CallSettings)

Batch pauses LineItem objects.

Declaration
public virtual BatchPauseLineItemsResponse BatchPauseLineItems(NetworkName parent, IEnumerable<LineItemName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<LineItemName> names

Required. The names of the LineItem objects to pause. Format: networks/{network_code}/lineItems/{line_item}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchPauseLineItemsResponse

The RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = LineItemServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<LineItemName> names = new LineItemName[]
{
    LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
};
// Make the request
BatchPauseLineItemsResponse response = lineItemServiceClient.BatchPauseLineItems(parent, names);

BatchPauseLineItems(string, IEnumerable<string>, CallSettings)

Batch pauses LineItem objects.

Declaration
public virtual BatchPauseLineItemsResponse BatchPauseLineItems(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<string> names

Required. The names of the LineItem objects to pause. Format: networks/{network_code}/lineItems/{line_item}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchPauseLineItemsResponse

The RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = LineItemServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/lineItems/[LINE_ITEM]",
};
// Make the request
BatchPauseLineItemsResponse response = lineItemServiceClient.BatchPauseLineItems(parent, names);

BatchPauseLineItemsAsync(BatchPauseLineItemsRequest, CallSettings)

Batch pauses LineItem objects.

Declaration
public virtual Task<BatchPauseLineItemsResponse> BatchPauseLineItemsAsync(BatchPauseLineItemsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchPauseLineItemsRequest 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<BatchPauseLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
BatchPauseLineItemsRequest request = new BatchPauseLineItemsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    LineItemNames =
    {
        LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
    },
};
// Make the request
BatchPauseLineItemsResponse response = await lineItemServiceClient.BatchPauseLineItemsAsync(request);

BatchPauseLineItemsAsync(BatchPauseLineItemsRequest, CancellationToken)

Batch pauses LineItem objects.

Declaration
public virtual Task<BatchPauseLineItemsResponse> BatchPauseLineItemsAsync(BatchPauseLineItemsRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchPauseLineItemsRequest request

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

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchPauseLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
BatchPauseLineItemsRequest request = new BatchPauseLineItemsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    LineItemNames =
    {
        LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
    },
};
// Make the request
BatchPauseLineItemsResponse response = await lineItemServiceClient.BatchPauseLineItemsAsync(request);

BatchPauseLineItemsAsync(NetworkName, IEnumerable<LineItemName>, CallSettings)

Batch pauses LineItem objects.

Declaration
public virtual Task<BatchPauseLineItemsResponse> BatchPauseLineItemsAsync(NetworkName parent, IEnumerable<LineItemName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<LineItemName> names

Required. The names of the LineItem objects to pause. Format: networks/{network_code}/lineItems/{line_item}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchPauseLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<LineItemName> names = new LineItemName[]
{
    LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
};
// Make the request
BatchPauseLineItemsResponse response = await lineItemServiceClient.BatchPauseLineItemsAsync(parent, names);

BatchPauseLineItemsAsync(NetworkName, IEnumerable<LineItemName>, CancellationToken)

Batch pauses LineItem objects.

Declaration
public virtual Task<BatchPauseLineItemsResponse> BatchPauseLineItemsAsync(NetworkName parent, IEnumerable<LineItemName> names, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<LineItemName> names

Required. The names of the LineItem objects to pause. Format: networks/{network_code}/lineItems/{line_item}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchPauseLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<LineItemName> names = new LineItemName[]
{
    LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
};
// Make the request
BatchPauseLineItemsResponse response = await lineItemServiceClient.BatchPauseLineItemsAsync(parent, names);

BatchPauseLineItemsAsync(string, IEnumerable<string>, CallSettings)

Batch pauses LineItem objects.

Declaration
public virtual Task<BatchPauseLineItemsResponse> BatchPauseLineItemsAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<string> names

Required. The names of the LineItem objects to pause. Format: networks/{network_code}/lineItems/{line_item}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchPauseLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/lineItems/[LINE_ITEM]",
};
// Make the request
BatchPauseLineItemsResponse response = await lineItemServiceClient.BatchPauseLineItemsAsync(parent, names);

BatchPauseLineItemsAsync(string, IEnumerable<string>, CancellationToken)

Batch pauses LineItem objects.

Declaration
public virtual Task<BatchPauseLineItemsResponse> BatchPauseLineItemsAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<string> names

Required. The names of the LineItem objects to pause. Format: networks/{network_code}/lineItems/{line_item}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchPauseLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/lineItems/[LINE_ITEM]",
};
// Make the request
BatchPauseLineItemsResponse response = await lineItemServiceClient.BatchPauseLineItemsAsync(parent, names);

BatchReleaseLineItems(BatchReleaseLineItemsRequest, CallSettings)

Batch releases LineItem objects.

Declaration
public virtual BatchReleaseLineItemsResponse BatchReleaseLineItems(BatchReleaseLineItemsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchReleaseLineItemsRequest 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
BatchReleaseLineItemsResponse

The RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = LineItemServiceClient.Create();
// Initialize request argument(s)
BatchReleaseLineItemsRequest request = new BatchReleaseLineItemsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    LineItemNames =
    {
        LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
    },
};
// Make the request
BatchReleaseLineItemsResponse response = lineItemServiceClient.BatchReleaseLineItems(request);

BatchReleaseLineItems(NetworkName, IEnumerable<LineItemName>, CallSettings)

Batch releases LineItem objects.

Declaration
public virtual BatchReleaseLineItemsResponse BatchReleaseLineItems(NetworkName parent, IEnumerable<LineItemName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<LineItemName> names

Required. The names of the LineItem objects to release. Format: networks/{network_code}/lineItems/{line_item}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchReleaseLineItemsResponse

The RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = LineItemServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<LineItemName> names = new LineItemName[]
{
    LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
};
// Make the request
BatchReleaseLineItemsResponse response = lineItemServiceClient.BatchReleaseLineItems(parent, names);

BatchReleaseLineItems(string, IEnumerable<string>, CallSettings)

Batch releases LineItem objects.

Declaration
public virtual BatchReleaseLineItemsResponse BatchReleaseLineItems(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<string> names

Required. The names of the LineItem objects to release. Format: networks/{network_code}/lineItems/{line_item}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchReleaseLineItemsResponse

The RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = LineItemServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/lineItems/[LINE_ITEM]",
};
// Make the request
BatchReleaseLineItemsResponse response = lineItemServiceClient.BatchReleaseLineItems(parent, names);

BatchReleaseLineItemsAsync(BatchReleaseLineItemsRequest, CallSettings)

Batch releases LineItem objects.

Declaration
public virtual Task<BatchReleaseLineItemsResponse> BatchReleaseLineItemsAsync(BatchReleaseLineItemsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchReleaseLineItemsRequest 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<BatchReleaseLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
BatchReleaseLineItemsRequest request = new BatchReleaseLineItemsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    LineItemNames =
    {
        LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
    },
};
// Make the request
BatchReleaseLineItemsResponse response = await lineItemServiceClient.BatchReleaseLineItemsAsync(request);

BatchReleaseLineItemsAsync(BatchReleaseLineItemsRequest, CancellationToken)

Batch releases LineItem objects.

Declaration
public virtual Task<BatchReleaseLineItemsResponse> BatchReleaseLineItemsAsync(BatchReleaseLineItemsRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchReleaseLineItemsRequest request

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

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchReleaseLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
BatchReleaseLineItemsRequest request = new BatchReleaseLineItemsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    LineItemNames =
    {
        LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
    },
};
// Make the request
BatchReleaseLineItemsResponse response = await lineItemServiceClient.BatchReleaseLineItemsAsync(request);

BatchReleaseLineItemsAsync(NetworkName, IEnumerable<LineItemName>, CallSettings)

Batch releases LineItem objects.

Declaration
public virtual Task<BatchReleaseLineItemsResponse> BatchReleaseLineItemsAsync(NetworkName parent, IEnumerable<LineItemName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<LineItemName> names

Required. The names of the LineItem objects to release. Format: networks/{network_code}/lineItems/{line_item}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchReleaseLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<LineItemName> names = new LineItemName[]
{
    LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
};
// Make the request
BatchReleaseLineItemsResponse response = await lineItemServiceClient.BatchReleaseLineItemsAsync(parent, names);

BatchReleaseLineItemsAsync(NetworkName, IEnumerable<LineItemName>, CancellationToken)

Batch releases LineItem objects.

Declaration
public virtual Task<BatchReleaseLineItemsResponse> BatchReleaseLineItemsAsync(NetworkName parent, IEnumerable<LineItemName> names, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<LineItemName> names

Required. The names of the LineItem objects to release. Format: networks/{network_code}/lineItems/{line_item}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchReleaseLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<LineItemName> names = new LineItemName[]
{
    LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
};
// Make the request
BatchReleaseLineItemsResponse response = await lineItemServiceClient.BatchReleaseLineItemsAsync(parent, names);

BatchReleaseLineItemsAsync(string, IEnumerable<string>, CallSettings)

Batch releases LineItem objects.

Declaration
public virtual Task<BatchReleaseLineItemsResponse> BatchReleaseLineItemsAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<string> names

Required. The names of the LineItem objects to release. Format: networks/{network_code}/lineItems/{line_item}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchReleaseLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/lineItems/[LINE_ITEM]",
};
// Make the request
BatchReleaseLineItemsResponse response = await lineItemServiceClient.BatchReleaseLineItemsAsync(parent, names);

BatchReleaseLineItemsAsync(string, IEnumerable<string>, CancellationToken)

Batch releases LineItem objects.

Declaration
public virtual Task<BatchReleaseLineItemsResponse> BatchReleaseLineItemsAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<string> names

Required. The names of the LineItem objects to release. Format: networks/{network_code}/lineItems/{line_item}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchReleaseLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/lineItems/[LINE_ITEM]",
};
// Make the request
BatchReleaseLineItemsResponse response = await lineItemServiceClient.BatchReleaseLineItemsAsync(parent, names);

BatchReserveAndOverbookLineItems(BatchReserveAndOverbookLineItemsRequest, CallSettings)

Batch reserves and overbooks LineItem objects.

Declaration
public virtual BatchReserveAndOverbookLineItemsResponse BatchReserveAndOverbookLineItems(BatchReserveAndOverbookLineItemsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchReserveAndOverbookLineItemsRequest 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
BatchReserveAndOverbookLineItemsResponse

The RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = LineItemServiceClient.Create();
// Initialize request argument(s)
BatchReserveAndOverbookLineItemsRequest request = new BatchReserveAndOverbookLineItemsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    LineItemNames =
    {
        LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
    },
};
// Make the request
BatchReserveAndOverbookLineItemsResponse response = lineItemServiceClient.BatchReserveAndOverbookLineItems(request);

BatchReserveAndOverbookLineItems(NetworkName, IEnumerable<LineItemName>, CallSettings)

Batch reserves and overbooks LineItem objects.

Declaration
public virtual BatchReserveAndOverbookLineItemsResponse BatchReserveAndOverbookLineItems(NetworkName parent, IEnumerable<LineItemName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<LineItemName> names

Required. The names of the LineItem objects to reserve and overbook. Format: networks/{network_code}/lineItems/{line_item}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchReserveAndOverbookLineItemsResponse

The RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = LineItemServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<LineItemName> names = new LineItemName[]
{
    LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
};
// Make the request
BatchReserveAndOverbookLineItemsResponse response = lineItemServiceClient.BatchReserveAndOverbookLineItems(parent, names);

BatchReserveAndOverbookLineItems(string, IEnumerable<string>, CallSettings)

Batch reserves and overbooks LineItem objects.

Declaration
public virtual BatchReserveAndOverbookLineItemsResponse BatchReserveAndOverbookLineItems(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<string> names

Required. The names of the LineItem objects to reserve and overbook. Format: networks/{network_code}/lineItems/{line_item}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchReserveAndOverbookLineItemsResponse

The RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = LineItemServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/lineItems/[LINE_ITEM]",
};
// Make the request
BatchReserveAndOverbookLineItemsResponse response = lineItemServiceClient.BatchReserveAndOverbookLineItems(parent, names);

BatchReserveAndOverbookLineItemsAsync(BatchReserveAndOverbookLineItemsRequest, CallSettings)

Batch reserves and overbooks LineItem objects.

Declaration
public virtual Task<BatchReserveAndOverbookLineItemsResponse> BatchReserveAndOverbookLineItemsAsync(BatchReserveAndOverbookLineItemsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchReserveAndOverbookLineItemsRequest 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<BatchReserveAndOverbookLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
BatchReserveAndOverbookLineItemsRequest request = new BatchReserveAndOverbookLineItemsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    LineItemNames =
    {
        LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
    },
};
// Make the request
BatchReserveAndOverbookLineItemsResponse response = await lineItemServiceClient.BatchReserveAndOverbookLineItemsAsync(request);

BatchReserveAndOverbookLineItemsAsync(BatchReserveAndOverbookLineItemsRequest, CancellationToken)

Batch reserves and overbooks LineItem objects.

Declaration
public virtual Task<BatchReserveAndOverbookLineItemsResponse> BatchReserveAndOverbookLineItemsAsync(BatchReserveAndOverbookLineItemsRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchReserveAndOverbookLineItemsRequest request

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

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchReserveAndOverbookLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
BatchReserveAndOverbookLineItemsRequest request = new BatchReserveAndOverbookLineItemsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    LineItemNames =
    {
        LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
    },
};
// Make the request
BatchReserveAndOverbookLineItemsResponse response = await lineItemServiceClient.BatchReserveAndOverbookLineItemsAsync(request);

BatchReserveAndOverbookLineItemsAsync(NetworkName, IEnumerable<LineItemName>, CallSettings)

Batch reserves and overbooks LineItem objects.

Declaration
public virtual Task<BatchReserveAndOverbookLineItemsResponse> BatchReserveAndOverbookLineItemsAsync(NetworkName parent, IEnumerable<LineItemName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<LineItemName> names

Required. The names of the LineItem objects to reserve and overbook. Format: networks/{network_code}/lineItems/{line_item}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchReserveAndOverbookLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<LineItemName> names = new LineItemName[]
{
    LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
};
// Make the request
BatchReserveAndOverbookLineItemsResponse response = await lineItemServiceClient.BatchReserveAndOverbookLineItemsAsync(parent, names);

BatchReserveAndOverbookLineItemsAsync(NetworkName, IEnumerable<LineItemName>, CancellationToken)

Batch reserves and overbooks LineItem objects.

Declaration
public virtual Task<BatchReserveAndOverbookLineItemsResponse> BatchReserveAndOverbookLineItemsAsync(NetworkName parent, IEnumerable<LineItemName> names, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<LineItemName> names

Required. The names of the LineItem objects to reserve and overbook. Format: networks/{network_code}/lineItems/{line_item}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchReserveAndOverbookLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<LineItemName> names = new LineItemName[]
{
    LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
};
// Make the request
BatchReserveAndOverbookLineItemsResponse response = await lineItemServiceClient.BatchReserveAndOverbookLineItemsAsync(parent, names);

BatchReserveAndOverbookLineItemsAsync(string, IEnumerable<string>, CallSettings)

Batch reserves and overbooks LineItem objects.

Declaration
public virtual Task<BatchReserveAndOverbookLineItemsResponse> BatchReserveAndOverbookLineItemsAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<string> names

Required. The names of the LineItem objects to reserve and overbook. Format: networks/{network_code}/lineItems/{line_item}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchReserveAndOverbookLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/lineItems/[LINE_ITEM]",
};
// Make the request
BatchReserveAndOverbookLineItemsResponse response = await lineItemServiceClient.BatchReserveAndOverbookLineItemsAsync(parent, names);

BatchReserveAndOverbookLineItemsAsync(string, IEnumerable<string>, CancellationToken)

Batch reserves and overbooks LineItem objects.

Declaration
public virtual Task<BatchReserveAndOverbookLineItemsResponse> BatchReserveAndOverbookLineItemsAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<string> names

Required. The names of the LineItem objects to reserve and overbook. Format: networks/{network_code}/lineItems/{line_item}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchReserveAndOverbookLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/lineItems/[LINE_ITEM]",
};
// Make the request
BatchReserveAndOverbookLineItemsResponse response = await lineItemServiceClient.BatchReserveAndOverbookLineItemsAsync(parent, names);

BatchReserveLineItems(BatchReserveLineItemsRequest, CallSettings)

Batch reserves LineItem objects.

Declaration
public virtual BatchReserveLineItemsResponse BatchReserveLineItems(BatchReserveLineItemsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchReserveLineItemsRequest 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
BatchReserveLineItemsResponse

The RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = LineItemServiceClient.Create();
// Initialize request argument(s)
BatchReserveLineItemsRequest request = new BatchReserveLineItemsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    LineItemNames =
    {
        LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
    },
};
// Make the request
BatchReserveLineItemsResponse response = lineItemServiceClient.BatchReserveLineItems(request);

BatchReserveLineItems(NetworkName, IEnumerable<LineItemName>, CallSettings)

Batch reserves LineItem objects.

Declaration
public virtual BatchReserveLineItemsResponse BatchReserveLineItems(NetworkName parent, IEnumerable<LineItemName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<LineItemName> names

Required. The names of the LineItem objects to reserve. Format: networks/{network_code}/lineItems/{line_item}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchReserveLineItemsResponse

The RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = LineItemServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<LineItemName> names = new LineItemName[]
{
    LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
};
// Make the request
BatchReserveLineItemsResponse response = lineItemServiceClient.BatchReserveLineItems(parent, names);

BatchReserveLineItems(string, IEnumerable<string>, CallSettings)

Batch reserves LineItem objects.

Declaration
public virtual BatchReserveLineItemsResponse BatchReserveLineItems(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<string> names

Required. The names of the LineItem objects to reserve. Format: networks/{network_code}/lineItems/{line_item}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchReserveLineItemsResponse

The RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = LineItemServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/lineItems/[LINE_ITEM]",
};
// Make the request
BatchReserveLineItemsResponse response = lineItemServiceClient.BatchReserveLineItems(parent, names);

BatchReserveLineItemsAsync(BatchReserveLineItemsRequest, CallSettings)

Batch reserves LineItem objects.

Declaration
public virtual Task<BatchReserveLineItemsResponse> BatchReserveLineItemsAsync(BatchReserveLineItemsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchReserveLineItemsRequest 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<BatchReserveLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
BatchReserveLineItemsRequest request = new BatchReserveLineItemsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    LineItemNames =
    {
        LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
    },
};
// Make the request
BatchReserveLineItemsResponse response = await lineItemServiceClient.BatchReserveLineItemsAsync(request);

BatchReserveLineItemsAsync(BatchReserveLineItemsRequest, CancellationToken)

Batch reserves LineItem objects.

Declaration
public virtual Task<BatchReserveLineItemsResponse> BatchReserveLineItemsAsync(BatchReserveLineItemsRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchReserveLineItemsRequest request

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

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchReserveLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
BatchReserveLineItemsRequest request = new BatchReserveLineItemsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    LineItemNames =
    {
        LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
    },
};
// Make the request
BatchReserveLineItemsResponse response = await lineItemServiceClient.BatchReserveLineItemsAsync(request);

BatchReserveLineItemsAsync(NetworkName, IEnumerable<LineItemName>, CallSettings)

Batch reserves LineItem objects.

Declaration
public virtual Task<BatchReserveLineItemsResponse> BatchReserveLineItemsAsync(NetworkName parent, IEnumerable<LineItemName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<LineItemName> names

Required. The names of the LineItem objects to reserve. Format: networks/{network_code}/lineItems/{line_item}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchReserveLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<LineItemName> names = new LineItemName[]
{
    LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
};
// Make the request
BatchReserveLineItemsResponse response = await lineItemServiceClient.BatchReserveLineItemsAsync(parent, names);

BatchReserveLineItemsAsync(NetworkName, IEnumerable<LineItemName>, CancellationToken)

Batch reserves LineItem objects.

Declaration
public virtual Task<BatchReserveLineItemsResponse> BatchReserveLineItemsAsync(NetworkName parent, IEnumerable<LineItemName> names, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<LineItemName> names

Required. The names of the LineItem objects to reserve. Format: networks/{network_code}/lineItems/{line_item}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchReserveLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<LineItemName> names = new LineItemName[]
{
    LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
};
// Make the request
BatchReserveLineItemsResponse response = await lineItemServiceClient.BatchReserveLineItemsAsync(parent, names);

BatchReserveLineItemsAsync(string, IEnumerable<string>, CallSettings)

Batch reserves LineItem objects.

Declaration
public virtual Task<BatchReserveLineItemsResponse> BatchReserveLineItemsAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<string> names

Required. The names of the LineItem objects to reserve. Format: networks/{network_code}/lineItems/{line_item}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchReserveLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/lineItems/[LINE_ITEM]",
};
// Make the request
BatchReserveLineItemsResponse response = await lineItemServiceClient.BatchReserveLineItemsAsync(parent, names);

BatchReserveLineItemsAsync(string, IEnumerable<string>, CancellationToken)

Batch reserves LineItem objects.

Declaration
public virtual Task<BatchReserveLineItemsResponse> BatchReserveLineItemsAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<string> names

Required. The names of the LineItem objects to reserve. Format: networks/{network_code}/lineItems/{line_item}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchReserveLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/lineItems/[LINE_ITEM]",
};
// Make the request
BatchReserveLineItemsResponse response = await lineItemServiceClient.BatchReserveLineItemsAsync(parent, names);

BatchResumeAndOverbookLineItems(BatchResumeAndOverbookLineItemsRequest, CallSettings)

Batch resumes and overbooks LineItem objects.

Declaration
public virtual BatchResumeAndOverbookLineItemsResponse BatchResumeAndOverbookLineItems(BatchResumeAndOverbookLineItemsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchResumeAndOverbookLineItemsRequest 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
BatchResumeAndOverbookLineItemsResponse

The RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = LineItemServiceClient.Create();
// Initialize request argument(s)
BatchResumeAndOverbookLineItemsRequest request = new BatchResumeAndOverbookLineItemsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    LineItemNames =
    {
        LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
    },
};
// Make the request
BatchResumeAndOverbookLineItemsResponse response = lineItemServiceClient.BatchResumeAndOverbookLineItems(request);

BatchResumeAndOverbookLineItems(NetworkName, IEnumerable<LineItemName>, CallSettings)

Batch resumes and overbooks LineItem objects.

Declaration
public virtual BatchResumeAndOverbookLineItemsResponse BatchResumeAndOverbookLineItems(NetworkName parent, IEnumerable<LineItemName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<LineItemName> names

Required. The names of the LineItem objects to resume and overbook. Format: networks/{network_code}/lineItems/{line_item}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchResumeAndOverbookLineItemsResponse

The RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = LineItemServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<LineItemName> names = new LineItemName[]
{
    LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
};
// Make the request
BatchResumeAndOverbookLineItemsResponse response = lineItemServiceClient.BatchResumeAndOverbookLineItems(parent, names);

BatchResumeAndOverbookLineItems(string, IEnumerable<string>, CallSettings)

Batch resumes and overbooks LineItem objects.

Declaration
public virtual BatchResumeAndOverbookLineItemsResponse BatchResumeAndOverbookLineItems(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<string> names

Required. The names of the LineItem objects to resume and overbook. Format: networks/{network_code}/lineItems/{line_item}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchResumeAndOverbookLineItemsResponse

The RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = LineItemServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/lineItems/[LINE_ITEM]",
};
// Make the request
BatchResumeAndOverbookLineItemsResponse response = lineItemServiceClient.BatchResumeAndOverbookLineItems(parent, names);

BatchResumeAndOverbookLineItemsAsync(BatchResumeAndOverbookLineItemsRequest, CallSettings)

Batch resumes and overbooks LineItem objects.

Declaration
public virtual Task<BatchResumeAndOverbookLineItemsResponse> BatchResumeAndOverbookLineItemsAsync(BatchResumeAndOverbookLineItemsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchResumeAndOverbookLineItemsRequest 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<BatchResumeAndOverbookLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
BatchResumeAndOverbookLineItemsRequest request = new BatchResumeAndOverbookLineItemsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    LineItemNames =
    {
        LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
    },
};
// Make the request
BatchResumeAndOverbookLineItemsResponse response = await lineItemServiceClient.BatchResumeAndOverbookLineItemsAsync(request);

BatchResumeAndOverbookLineItemsAsync(BatchResumeAndOverbookLineItemsRequest, CancellationToken)

Batch resumes and overbooks LineItem objects.

Declaration
public virtual Task<BatchResumeAndOverbookLineItemsResponse> BatchResumeAndOverbookLineItemsAsync(BatchResumeAndOverbookLineItemsRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchResumeAndOverbookLineItemsRequest request

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

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchResumeAndOverbookLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
BatchResumeAndOverbookLineItemsRequest request = new BatchResumeAndOverbookLineItemsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    LineItemNames =
    {
        LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
    },
};
// Make the request
BatchResumeAndOverbookLineItemsResponse response = await lineItemServiceClient.BatchResumeAndOverbookLineItemsAsync(request);

BatchResumeAndOverbookLineItemsAsync(NetworkName, IEnumerable<LineItemName>, CallSettings)

Batch resumes and overbooks LineItem objects.

Declaration
public virtual Task<BatchResumeAndOverbookLineItemsResponse> BatchResumeAndOverbookLineItemsAsync(NetworkName parent, IEnumerable<LineItemName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<LineItemName> names

Required. The names of the LineItem objects to resume and overbook. Format: networks/{network_code}/lineItems/{line_item}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchResumeAndOverbookLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<LineItemName> names = new LineItemName[]
{
    LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
};
// Make the request
BatchResumeAndOverbookLineItemsResponse response = await lineItemServiceClient.BatchResumeAndOverbookLineItemsAsync(parent, names);

BatchResumeAndOverbookLineItemsAsync(NetworkName, IEnumerable<LineItemName>, CancellationToken)

Batch resumes and overbooks LineItem objects.

Declaration
public virtual Task<BatchResumeAndOverbookLineItemsResponse> BatchResumeAndOverbookLineItemsAsync(NetworkName parent, IEnumerable<LineItemName> names, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<LineItemName> names

Required. The names of the LineItem objects to resume and overbook. Format: networks/{network_code}/lineItems/{line_item}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchResumeAndOverbookLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<LineItemName> names = new LineItemName[]
{
    LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
};
// Make the request
BatchResumeAndOverbookLineItemsResponse response = await lineItemServiceClient.BatchResumeAndOverbookLineItemsAsync(parent, names);

BatchResumeAndOverbookLineItemsAsync(string, IEnumerable<string>, CallSettings)

Batch resumes and overbooks LineItem objects.

Declaration
public virtual Task<BatchResumeAndOverbookLineItemsResponse> BatchResumeAndOverbookLineItemsAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<string> names

Required. The names of the LineItem objects to resume and overbook. Format: networks/{network_code}/lineItems/{line_item}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchResumeAndOverbookLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/lineItems/[LINE_ITEM]",
};
// Make the request
BatchResumeAndOverbookLineItemsResponse response = await lineItemServiceClient.BatchResumeAndOverbookLineItemsAsync(parent, names);

BatchResumeAndOverbookLineItemsAsync(string, IEnumerable<string>, CancellationToken)

Batch resumes and overbooks LineItem objects.

Declaration
public virtual Task<BatchResumeAndOverbookLineItemsResponse> BatchResumeAndOverbookLineItemsAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<string> names

Required. The names of the LineItem objects to resume and overbook. Format: networks/{network_code}/lineItems/{line_item}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchResumeAndOverbookLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/lineItems/[LINE_ITEM]",
};
// Make the request
BatchResumeAndOverbookLineItemsResponse response = await lineItemServiceClient.BatchResumeAndOverbookLineItemsAsync(parent, names);

BatchResumeLineItems(BatchResumeLineItemsRequest, CallSettings)

Batch resumes LineItem objects.

Declaration
public virtual BatchResumeLineItemsResponse BatchResumeLineItems(BatchResumeLineItemsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchResumeLineItemsRequest 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
BatchResumeLineItemsResponse

The RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = LineItemServiceClient.Create();
// Initialize request argument(s)
BatchResumeLineItemsRequest request = new BatchResumeLineItemsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    LineItemNames =
    {
        LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
    },
};
// Make the request
BatchResumeLineItemsResponse response = lineItemServiceClient.BatchResumeLineItems(request);

BatchResumeLineItems(NetworkName, IEnumerable<LineItemName>, CallSettings)

Batch resumes LineItem objects.

Declaration
public virtual BatchResumeLineItemsResponse BatchResumeLineItems(NetworkName parent, IEnumerable<LineItemName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<LineItemName> names

Required. The names of the LineItem objects to resume. Format: networks/{network_code}/lineItems/{line_item}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchResumeLineItemsResponse

The RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = LineItemServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<LineItemName> names = new LineItemName[]
{
    LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
};
// Make the request
BatchResumeLineItemsResponse response = lineItemServiceClient.BatchResumeLineItems(parent, names);

BatchResumeLineItems(string, IEnumerable<string>, CallSettings)

Batch resumes LineItem objects.

Declaration
public virtual BatchResumeLineItemsResponse BatchResumeLineItems(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<string> names

Required. The names of the LineItem objects to resume. Format: networks/{network_code}/lineItems/{line_item}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchResumeLineItemsResponse

The RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = LineItemServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/lineItems/[LINE_ITEM]",
};
// Make the request
BatchResumeLineItemsResponse response = lineItemServiceClient.BatchResumeLineItems(parent, names);

BatchResumeLineItemsAsync(BatchResumeLineItemsRequest, CallSettings)

Batch resumes LineItem objects.

Declaration
public virtual Task<BatchResumeLineItemsResponse> BatchResumeLineItemsAsync(BatchResumeLineItemsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchResumeLineItemsRequest 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<BatchResumeLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
BatchResumeLineItemsRequest request = new BatchResumeLineItemsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    LineItemNames =
    {
        LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
    },
};
// Make the request
BatchResumeLineItemsResponse response = await lineItemServiceClient.BatchResumeLineItemsAsync(request);

BatchResumeLineItemsAsync(BatchResumeLineItemsRequest, CancellationToken)

Batch resumes LineItem objects.

Declaration
public virtual Task<BatchResumeLineItemsResponse> BatchResumeLineItemsAsync(BatchResumeLineItemsRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchResumeLineItemsRequest request

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

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchResumeLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
BatchResumeLineItemsRequest request = new BatchResumeLineItemsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    LineItemNames =
    {
        LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
    },
};
// Make the request
BatchResumeLineItemsResponse response = await lineItemServiceClient.BatchResumeLineItemsAsync(request);

BatchResumeLineItemsAsync(NetworkName, IEnumerable<LineItemName>, CallSettings)

Batch resumes LineItem objects.

Declaration
public virtual Task<BatchResumeLineItemsResponse> BatchResumeLineItemsAsync(NetworkName parent, IEnumerable<LineItemName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<LineItemName> names

Required. The names of the LineItem objects to resume. Format: networks/{network_code}/lineItems/{line_item}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchResumeLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<LineItemName> names = new LineItemName[]
{
    LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
};
// Make the request
BatchResumeLineItemsResponse response = await lineItemServiceClient.BatchResumeLineItemsAsync(parent, names);

BatchResumeLineItemsAsync(NetworkName, IEnumerable<LineItemName>, CancellationToken)

Batch resumes LineItem objects.

Declaration
public virtual Task<BatchResumeLineItemsResponse> BatchResumeLineItemsAsync(NetworkName parent, IEnumerable<LineItemName> names, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<LineItemName> names

Required. The names of the LineItem objects to resume. Format: networks/{network_code}/lineItems/{line_item}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchResumeLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<LineItemName> names = new LineItemName[]
{
    LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
};
// Make the request
BatchResumeLineItemsResponse response = await lineItemServiceClient.BatchResumeLineItemsAsync(parent, names);

BatchResumeLineItemsAsync(string, IEnumerable<string>, CallSettings)

Batch resumes LineItem objects.

Declaration
public virtual Task<BatchResumeLineItemsResponse> BatchResumeLineItemsAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<string> names

Required. The names of the LineItem objects to resume. Format: networks/{network_code}/lineItems/{line_item}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchResumeLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/lineItems/[LINE_ITEM]",
};
// Make the request
BatchResumeLineItemsResponse response = await lineItemServiceClient.BatchResumeLineItemsAsync(parent, names);

BatchResumeLineItemsAsync(string, IEnumerable<string>, CancellationToken)

Batch resumes LineItem objects.

Declaration
public virtual Task<BatchResumeLineItemsResponse> BatchResumeLineItemsAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code}

IEnumerable<string> names

Required. The names of the LineItem objects to resume. Format: networks/{network_code}/lineItems/{line_item}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchResumeLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/lineItems/[LINE_ITEM]",
};
// Make the request
BatchResumeLineItemsResponse response = await lineItemServiceClient.BatchResumeLineItemsAsync(parent, names);

BatchUnarchiveLineItems(BatchUnarchiveLineItemsRequest, CallSettings)

Batch unarchives LineItem objects.

Declaration
public virtual BatchUnarchiveLineItemsResponse BatchUnarchiveLineItems(BatchUnarchiveLineItemsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchUnarchiveLineItemsRequest 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
BatchUnarchiveLineItemsResponse

The RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = LineItemServiceClient.Create();
// Initialize request argument(s)
BatchUnarchiveLineItemsRequest request = new BatchUnarchiveLineItemsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    LineItemNames =
    {
        LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
    },
};
// Make the request
BatchUnarchiveLineItemsResponse response = lineItemServiceClient.BatchUnarchiveLineItems(request);

BatchUnarchiveLineItems(NetworkName, IEnumerable<LineItemName>, CallSettings)

Batch unarchives LineItem objects.

Declaration
public virtual BatchUnarchiveLineItemsResponse BatchUnarchiveLineItems(NetworkName parent, IEnumerable<LineItemName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where LineItems will be unarchived. Format: networks/{network_code}

IEnumerable<LineItemName> names

Required. The names of the LineItem objects to extract. Format: networks/{network_code}/lineItems/{line_item}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchUnarchiveLineItemsResponse

The RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = LineItemServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<LineItemName> names = new LineItemName[]
{
    LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
};
// Make the request
BatchUnarchiveLineItemsResponse response = lineItemServiceClient.BatchUnarchiveLineItems(parent, names);

BatchUnarchiveLineItems(string, IEnumerable<string>, CallSettings)

Batch unarchives LineItem objects.

Declaration
public virtual BatchUnarchiveLineItemsResponse BatchUnarchiveLineItems(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where LineItems will be unarchived. Format: networks/{network_code}

IEnumerable<string> names

Required. The names of the LineItem objects to extract. Format: networks/{network_code}/lineItems/{line_item}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchUnarchiveLineItemsResponse

The RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = LineItemServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/lineItems/[LINE_ITEM]",
};
// Make the request
BatchUnarchiveLineItemsResponse response = lineItemServiceClient.BatchUnarchiveLineItems(parent, names);

BatchUnarchiveLineItemsAsync(BatchUnarchiveLineItemsRequest, CallSettings)

Batch unarchives LineItem objects.

Declaration
public virtual Task<BatchUnarchiveLineItemsResponse> BatchUnarchiveLineItemsAsync(BatchUnarchiveLineItemsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchUnarchiveLineItemsRequest 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<BatchUnarchiveLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
BatchUnarchiveLineItemsRequest request = new BatchUnarchiveLineItemsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    LineItemNames =
    {
        LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
    },
};
// Make the request
BatchUnarchiveLineItemsResponse response = await lineItemServiceClient.BatchUnarchiveLineItemsAsync(request);

BatchUnarchiveLineItemsAsync(BatchUnarchiveLineItemsRequest, CancellationToken)

Batch unarchives LineItem objects.

Declaration
public virtual Task<BatchUnarchiveLineItemsResponse> BatchUnarchiveLineItemsAsync(BatchUnarchiveLineItemsRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchUnarchiveLineItemsRequest request

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

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchUnarchiveLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
BatchUnarchiveLineItemsRequest request = new BatchUnarchiveLineItemsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    LineItemNames =
    {
        LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
    },
};
// Make the request
BatchUnarchiveLineItemsResponse response = await lineItemServiceClient.BatchUnarchiveLineItemsAsync(request);

BatchUnarchiveLineItemsAsync(NetworkName, IEnumerable<LineItemName>, CallSettings)

Batch unarchives LineItem objects.

Declaration
public virtual Task<BatchUnarchiveLineItemsResponse> BatchUnarchiveLineItemsAsync(NetworkName parent, IEnumerable<LineItemName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where LineItems will be unarchived. Format: networks/{network_code}

IEnumerable<LineItemName> names

Required. The names of the LineItem objects to extract. Format: networks/{network_code}/lineItems/{line_item}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchUnarchiveLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<LineItemName> names = new LineItemName[]
{
    LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
};
// Make the request
BatchUnarchiveLineItemsResponse response = await lineItemServiceClient.BatchUnarchiveLineItemsAsync(parent, names);

BatchUnarchiveLineItemsAsync(NetworkName, IEnumerable<LineItemName>, CancellationToken)

Batch unarchives LineItem objects.

Declaration
public virtual Task<BatchUnarchiveLineItemsResponse> BatchUnarchiveLineItemsAsync(NetworkName parent, IEnumerable<LineItemName> names, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where LineItems will be unarchived. Format: networks/{network_code}

IEnumerable<LineItemName> names

Required. The names of the LineItem objects to extract. Format: networks/{network_code}/lineItems/{line_item}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchUnarchiveLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<LineItemName> names = new LineItemName[]
{
    LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
};
// Make the request
BatchUnarchiveLineItemsResponse response = await lineItemServiceClient.BatchUnarchiveLineItemsAsync(parent, names);

BatchUnarchiveLineItemsAsync(string, IEnumerable<string>, CallSettings)

Batch unarchives LineItem objects.

Declaration
public virtual Task<BatchUnarchiveLineItemsResponse> BatchUnarchiveLineItemsAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where LineItems will be unarchived. Format: networks/{network_code}

IEnumerable<string> names

Required. The names of the LineItem objects to extract. Format: networks/{network_code}/lineItems/{line_item}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchUnarchiveLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/lineItems/[LINE_ITEM]",
};
// Make the request
BatchUnarchiveLineItemsResponse response = await lineItemServiceClient.BatchUnarchiveLineItemsAsync(parent, names);

BatchUnarchiveLineItemsAsync(string, IEnumerable<string>, CancellationToken)

Batch unarchives LineItem objects.

Declaration
public virtual Task<BatchUnarchiveLineItemsResponse> BatchUnarchiveLineItemsAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. The parent resource where LineItems will be unarchived. Format: networks/{network_code}

IEnumerable<string> names

Required. The names of the LineItem objects to extract. Format: networks/{network_code}/lineItems/{line_item}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchUnarchiveLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/lineItems/[LINE_ITEM]",
};
// Make the request
BatchUnarchiveLineItemsResponse response = await lineItemServiceClient.BatchUnarchiveLineItemsAsync(parent, names);

BatchUpdateLineItems(BatchUpdateLineItemsRequest, CallSettings)

Batch updates LineItem objects.

Declaration
public virtual BatchUpdateLineItemsResponse BatchUpdateLineItems(BatchUpdateLineItemsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchUpdateLineItemsRequest 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
BatchUpdateLineItemsResponse

The RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = LineItemServiceClient.Create();
// Initialize request argument(s)
BatchUpdateLineItemsRequest request = new BatchUpdateLineItemsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Requests =
    {
        new UpdateLineItemRequest(),
    },
};
// Make the request
BatchUpdateLineItemsResponse response = lineItemServiceClient.BatchUpdateLineItems(request);

BatchUpdateLineItems(NetworkName, IEnumerable<UpdateLineItemRequest>, CallSettings)

Batch updates LineItem objects.

Declaration
public virtual BatchUpdateLineItemsResponse BatchUpdateLineItems(NetworkName parent, IEnumerable<UpdateLineItemRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code} The parent segment of the line_item.name in each UpdateLineItemRequest must match this field.

IEnumerable<UpdateLineItemRequest> requests

Required. The LineItem objects to update. A maximum of 100 objects can be updated in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchUpdateLineItemsResponse

The RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = LineItemServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<UpdateLineItemRequest> requests = new UpdateLineItemRequest[]
{
    new UpdateLineItemRequest(),
};
// Make the request
BatchUpdateLineItemsResponse response = lineItemServiceClient.BatchUpdateLineItems(parent, requests);

BatchUpdateLineItems(string, IEnumerable<UpdateLineItemRequest>, CallSettings)

Batch updates LineItem objects.

Declaration
public virtual BatchUpdateLineItemsResponse BatchUpdateLineItems(string parent, IEnumerable<UpdateLineItemRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code} The parent segment of the line_item.name in each UpdateLineItemRequest must match this field.

IEnumerable<UpdateLineItemRequest> requests

Required. The LineItem objects to update. A maximum of 100 objects can be updated in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchUpdateLineItemsResponse

The RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = LineItemServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<UpdateLineItemRequest> requests = new UpdateLineItemRequest[]
{
    new UpdateLineItemRequest(),
};
// Make the request
BatchUpdateLineItemsResponse response = lineItemServiceClient.BatchUpdateLineItems(parent, requests);

BatchUpdateLineItemsAsync(BatchUpdateLineItemsRequest, CallSettings)

Batch updates LineItem objects.

Declaration
public virtual Task<BatchUpdateLineItemsResponse> BatchUpdateLineItemsAsync(BatchUpdateLineItemsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchUpdateLineItemsRequest 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<BatchUpdateLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
BatchUpdateLineItemsRequest request = new BatchUpdateLineItemsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Requests =
    {
        new UpdateLineItemRequest(),
    },
};
// Make the request
BatchUpdateLineItemsResponse response = await lineItemServiceClient.BatchUpdateLineItemsAsync(request);

BatchUpdateLineItemsAsync(BatchUpdateLineItemsRequest, CancellationToken)

Batch updates LineItem objects.

Declaration
public virtual Task<BatchUpdateLineItemsResponse> BatchUpdateLineItemsAsync(BatchUpdateLineItemsRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchUpdateLineItemsRequest request

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

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchUpdateLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
BatchUpdateLineItemsRequest request = new BatchUpdateLineItemsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Requests =
    {
        new UpdateLineItemRequest(),
    },
};
// Make the request
BatchUpdateLineItemsResponse response = await lineItemServiceClient.BatchUpdateLineItemsAsync(request);

BatchUpdateLineItemsAsync(NetworkName, IEnumerable<UpdateLineItemRequest>, CallSettings)

Batch updates LineItem objects.

Declaration
public virtual Task<BatchUpdateLineItemsResponse> BatchUpdateLineItemsAsync(NetworkName parent, IEnumerable<UpdateLineItemRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code} The parent segment of the line_item.name in each UpdateLineItemRequest must match this field.

IEnumerable<UpdateLineItemRequest> requests

Required. The LineItem objects to update. A maximum of 100 objects can be updated in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchUpdateLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<UpdateLineItemRequest> requests = new UpdateLineItemRequest[]
{
    new UpdateLineItemRequest(),
};
// Make the request
BatchUpdateLineItemsResponse response = await lineItemServiceClient.BatchUpdateLineItemsAsync(parent, requests);

BatchUpdateLineItemsAsync(NetworkName, IEnumerable<UpdateLineItemRequest>, CancellationToken)

Batch updates LineItem objects.

Declaration
public virtual Task<BatchUpdateLineItemsResponse> BatchUpdateLineItemsAsync(NetworkName parent, IEnumerable<UpdateLineItemRequest> requests, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code} The parent segment of the line_item.name in each UpdateLineItemRequest must match this field.

IEnumerable<UpdateLineItemRequest> requests

Required. The LineItem objects to update. A maximum of 100 objects can be updated in a batch.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchUpdateLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<UpdateLineItemRequest> requests = new UpdateLineItemRequest[]
{
    new UpdateLineItemRequest(),
};
// Make the request
BatchUpdateLineItemsResponse response = await lineItemServiceClient.BatchUpdateLineItemsAsync(parent, requests);

BatchUpdateLineItemsAsync(string, IEnumerable<UpdateLineItemRequest>, CallSettings)

Batch updates LineItem objects.

Declaration
public virtual Task<BatchUpdateLineItemsResponse> BatchUpdateLineItemsAsync(string parent, IEnumerable<UpdateLineItemRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code} The parent segment of the line_item.name in each UpdateLineItemRequest must match this field.

IEnumerable<UpdateLineItemRequest> requests

Required. The LineItem objects to update. A maximum of 100 objects can be updated in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchUpdateLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<UpdateLineItemRequest> requests = new UpdateLineItemRequest[]
{
    new UpdateLineItemRequest(),
};
// Make the request
BatchUpdateLineItemsResponse response = await lineItemServiceClient.BatchUpdateLineItemsAsync(parent, requests);

BatchUpdateLineItemsAsync(string, IEnumerable<UpdateLineItemRequest>, CancellationToken)

Batch updates LineItem objects.

Declaration
public virtual Task<BatchUpdateLineItemsResponse> BatchUpdateLineItemsAsync(string parent, IEnumerable<UpdateLineItemRequest> requests, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. The parent resource where LineItems will be updated. Format: networks/{network_code} The parent segment of the line_item.name in each UpdateLineItemRequest must match this field.

IEnumerable<UpdateLineItemRequest> requests

Required. The LineItem objects to update. A maximum of 100 objects can be updated in a batch.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchUpdateLineItemsResponse>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<UpdateLineItemRequest> requests = new UpdateLineItemRequest[]
{
    new UpdateLineItemRequest(),
};
// Make the request
BatchUpdateLineItemsResponse response = await lineItemServiceClient.BatchUpdateLineItemsAsync(parent, requests);

Create()

Synchronously creates a LineItemServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use LineItemServiceClientBuilder.

Declaration
public static LineItemServiceClient Create()
Returns
Type Description
LineItemServiceClient

The created LineItemServiceClient.

CreateAsync(CancellationToken)

Asynchronously creates a LineItemServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use LineItemServiceClientBuilder.

Declaration
public static Task<LineItemServiceClient> CreateAsync(CancellationToken cancellationToken = default)
Parameters
Type Name Description
CancellationToken cancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
Task<LineItemServiceClient>

The task representing the created LineItemServiceClient.

CreateLineItem(CreateLineItemRequest, CallSettings)

Creates a LineItem object.

Declaration
public virtual LineItem CreateLineItem(CreateLineItemRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
CreateLineItemRequest 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.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = LineItemServiceClient.Create();
// Initialize request argument(s)
CreateLineItemRequest request = new CreateLineItemRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    LineItem = new LineItem(),
};
// Make the request
LineItem response = lineItemServiceClient.CreateLineItem(request);

CreateLineItem(NetworkName, LineItem, CallSettings)

Creates a LineItem object.

Declaration
public virtual LineItem CreateLineItem(NetworkName parent, LineItem lineItem, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where this LineItem will be created. Format: networks/{network_code}

LineItem lineItem

Required. The LineItem to create.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
LineItem

The RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = LineItemServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
LineItem lineItem = new LineItem();
// Make the request
LineItem response = lineItemServiceClient.CreateLineItem(parent, lineItem);

CreateLineItem(string, LineItem, CallSettings)

Creates a LineItem object.

Declaration
public virtual LineItem CreateLineItem(string parent, LineItem lineItem, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where this LineItem will be created. Format: networks/{network_code}

LineItem lineItem

Required. The LineItem to create.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
LineItem

The RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = LineItemServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
LineItem lineItem = new LineItem();
// Make the request
LineItem response = lineItemServiceClient.CreateLineItem(parent, lineItem);

CreateLineItemAsync(CreateLineItemRequest, CallSettings)

Creates a LineItem object.

Declaration
public virtual Task<LineItem> CreateLineItemAsync(CreateLineItemRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
CreateLineItemRequest 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.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
CreateLineItemRequest request = new CreateLineItemRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    LineItem = new LineItem(),
};
// Make the request
LineItem response = await lineItemServiceClient.CreateLineItemAsync(request);

CreateLineItemAsync(CreateLineItemRequest, CancellationToken)

Creates a LineItem object.

Declaration
public virtual Task<LineItem> CreateLineItemAsync(CreateLineItemRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
CreateLineItemRequest request

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

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<LineItem>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
CreateLineItemRequest request = new CreateLineItemRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    LineItem = new LineItem(),
};
// Make the request
LineItem response = await lineItemServiceClient.CreateLineItemAsync(request);

CreateLineItemAsync(NetworkName, LineItem, CallSettings)

Creates a LineItem object.

Declaration
public virtual Task<LineItem> CreateLineItemAsync(NetworkName parent, LineItem lineItem, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where this LineItem will be created. Format: networks/{network_code}

LineItem lineItem

Required. The LineItem to create.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<LineItem>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
LineItem lineItem = new LineItem();
// Make the request
LineItem response = await lineItemServiceClient.CreateLineItemAsync(parent, lineItem);

CreateLineItemAsync(NetworkName, LineItem, CancellationToken)

Creates a LineItem object.

Declaration
public virtual Task<LineItem> CreateLineItemAsync(NetworkName parent, LineItem lineItem, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where this LineItem will be created. Format: networks/{network_code}

LineItem lineItem

Required. The LineItem to create.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<LineItem>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
LineItem lineItem = new LineItem();
// Make the request
LineItem response = await lineItemServiceClient.CreateLineItemAsync(parent, lineItem);

CreateLineItemAsync(string, LineItem, CallSettings)

Creates a LineItem object.

Declaration
public virtual Task<LineItem> CreateLineItemAsync(string parent, LineItem lineItem, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where this LineItem will be created. Format: networks/{network_code}

LineItem lineItem

Required. The LineItem to create.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<LineItem>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
LineItem lineItem = new LineItem();
// Make the request
LineItem response = await lineItemServiceClient.CreateLineItemAsync(parent, lineItem);

CreateLineItemAsync(string, LineItem, CancellationToken)

Creates a LineItem object.

Declaration
public virtual Task<LineItem> CreateLineItemAsync(string parent, LineItem lineItem, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. The parent resource where this LineItem will be created. Format: networks/{network_code}

LineItem lineItem

Required. The LineItem to create.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<LineItem>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
LineItem lineItem = new LineItem();
// Make the request
LineItem response = await lineItemServiceClient.CreateLineItemAsync(parent, lineItem);

GetLineItem(GetLineItemRequest, CallSettings)

Retrieves a LineItem object.

Declaration
public virtual 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.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = LineItemServiceClient.Create();
// Initialize request argument(s)
GetLineItemRequest request = new GetLineItemRequest
{
    LineItemName = LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
};
// Make the request
LineItem response = lineItemServiceClient.GetLineItem(request);

GetLineItem(LineItemName, CallSettings)

Retrieves a LineItem object.

Declaration
public virtual LineItem GetLineItem(LineItemName name, CallSettings callSettings = null)
Parameters
Type Name Description
LineItemName name

Required. The resource name of the LineItem. Format: networks/{network_code}/lineItems/{line_item_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
LineItem

The RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = LineItemServiceClient.Create();
// Initialize request argument(s)
LineItemName name = LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]");
// Make the request
LineItem response = lineItemServiceClient.GetLineItem(name);

GetLineItem(string, CallSettings)

Retrieves a LineItem object.

Declaration
public virtual LineItem GetLineItem(string name, CallSettings callSettings = null)
Parameters
Type Name Description
string name

Required. The resource name of the LineItem. Format: networks/{network_code}/lineItems/{line_item_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
LineItem

The RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = LineItemServiceClient.Create();
// Initialize request argument(s)
string name = "networks/[NETWORK_CODE]/lineItems/[LINE_ITEM]";
// Make the request
LineItem response = lineItemServiceClient.GetLineItem(name);

GetLineItemAsync(GetLineItemRequest, CallSettings)

Retrieves a LineItem object.

Declaration
public virtual 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.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
GetLineItemRequest request = new GetLineItemRequest
{
    LineItemName = LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
};
// Make the request
LineItem response = await lineItemServiceClient.GetLineItemAsync(request);

GetLineItemAsync(GetLineItemRequest, CancellationToken)

Retrieves a LineItem object.

Declaration
public virtual Task<LineItem> GetLineItemAsync(GetLineItemRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
GetLineItemRequest request

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

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<LineItem>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
GetLineItemRequest request = new GetLineItemRequest
{
    LineItemName = LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]"),
};
// Make the request
LineItem response = await lineItemServiceClient.GetLineItemAsync(request);

GetLineItemAsync(LineItemName, CallSettings)

Retrieves a LineItem object.

Declaration
public virtual Task<LineItem> GetLineItemAsync(LineItemName name, CallSettings callSettings = null)
Parameters
Type Name Description
LineItemName name

Required. The resource name of the LineItem. Format: networks/{network_code}/lineItems/{line_item_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<LineItem>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
LineItemName name = LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]");
// Make the request
LineItem response = await lineItemServiceClient.GetLineItemAsync(name);

GetLineItemAsync(LineItemName, CancellationToken)

Retrieves a LineItem object.

Declaration
public virtual Task<LineItem> GetLineItemAsync(LineItemName name, CancellationToken cancellationToken)
Parameters
Type Name Description
LineItemName name

Required. The resource name of the LineItem. Format: networks/{network_code}/lineItems/{line_item_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<LineItem>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
LineItemName name = LineItemName.FromNetworkCodeLineItem("[NETWORK_CODE]", "[LINE_ITEM]");
// Make the request
LineItem response = await lineItemServiceClient.GetLineItemAsync(name);

GetLineItemAsync(string, CallSettings)

Retrieves a LineItem object.

Declaration
public virtual Task<LineItem> GetLineItemAsync(string name, CallSettings callSettings = null)
Parameters
Type Name Description
string name

Required. The resource name of the LineItem. Format: networks/{network_code}/lineItems/{line_item_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<LineItem>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "networks/[NETWORK_CODE]/lineItems/[LINE_ITEM]";
// Make the request
LineItem response = await lineItemServiceClient.GetLineItemAsync(name);

GetLineItemAsync(string, CancellationToken)

Retrieves a LineItem object.

Declaration
public virtual Task<LineItem> GetLineItemAsync(string name, CancellationToken cancellationToken)
Parameters
Type Name Description
string name

Required. The resource name of the LineItem. Format: networks/{network_code}/lineItems/{line_item_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<LineItem>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "networks/[NETWORK_CODE]/lineItems/[LINE_ITEM]";
// Make the request
LineItem response = await lineItemServiceClient.GetLineItemAsync(name);

ListLineItems(ListLineItemsRequest, CallSettings)

Lists LineItem objects.

Declaration
public virtual 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.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = LineItemServiceClient.Create();
// Initialize request argument(s)
ListLineItemsRequest request = new ListLineItemsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Filter = "",
    OrderBy = "",
    Skip = 0,
};
// Make the request
PagedEnumerable<ListLineItemsResponse, LineItem> response = lineItemServiceClient.ListLineItems(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (LineItem item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListLineItemsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LineItem item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<LineItem> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (LineItem item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListLineItems(NetworkName, string, int?, CallSettings)

Lists LineItem objects.

Declaration
public virtual PagedEnumerable<ListLineItemsResponse, LineItem> ListLineItems(NetworkName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of LineItems. Format: networks/{network_code}

string pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

int? pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListLineItemsResponse, LineItem>

A pageable sequence of LineItem resources.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = LineItemServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
// Make the request
PagedEnumerable<ListLineItemsResponse, LineItem> response = lineItemServiceClient.ListLineItems(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (LineItem item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListLineItemsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LineItem item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<LineItem> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (LineItem item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListLineItems(string, string, int?, CallSettings)

Lists LineItem objects.

Declaration
public virtual PagedEnumerable<ListLineItemsResponse, LineItem> ListLineItems(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of LineItems. Format: networks/{network_code}

string pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

int? pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListLineItemsResponse, LineItem>

A pageable sequence of LineItem resources.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = LineItemServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
// Make the request
PagedEnumerable<ListLineItemsResponse, LineItem> response = lineItemServiceClient.ListLineItems(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (LineItem item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListLineItemsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LineItem item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<LineItem> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (LineItem item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListLineItemsAsync(ListLineItemsRequest, CallSettings)

Lists LineItem objects.

Declaration
public virtual 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.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
ListLineItemsRequest request = new ListLineItemsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Filter = "",
    OrderBy = "",
    Skip = 0,
};
// Make the request
PagedAsyncEnumerable<ListLineItemsResponse, LineItem> response = lineItemServiceClient.ListLineItemsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await foreach (LineItem item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListLineItemsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LineItem item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<LineItem> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (LineItem item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListLineItemsAsync(NetworkName, string, int?, CallSettings)

Lists LineItem objects.

Declaration
public virtual PagedAsyncEnumerable<ListLineItemsResponse, LineItem> ListLineItemsAsync(NetworkName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of LineItems. Format: networks/{network_code}

string pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

int? pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListLineItemsResponse, LineItem>

A pageable asynchronous sequence of LineItem resources.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
// Make the request
PagedAsyncEnumerable<ListLineItemsResponse, LineItem> response = lineItemServiceClient.ListLineItemsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (LineItem item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListLineItemsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LineItem item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<LineItem> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (LineItem item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListLineItemsAsync(string, string, int?, CallSettings)

Lists LineItem objects.

Declaration
public virtual PagedAsyncEnumerable<ListLineItemsResponse, LineItem> ListLineItemsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of LineItems. Format: networks/{network_code}

string pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

int? pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListLineItemsResponse, LineItem>

A pageable asynchronous sequence of LineItem resources.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
// Make the request
PagedAsyncEnumerable<ListLineItemsResponse, LineItem> response = lineItemServiceClient.ListLineItemsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (LineItem item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListLineItemsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LineItem item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<LineItem> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (LineItem item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.

Declaration
public static Task ShutdownDefaultChannelsAsync()
Returns
Type Description
Task

A task representing the asynchronous shutdown operation.

Remarks

After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.

UpdateLineItem(LineItem, FieldMask, CallSettings)

Updates a LineItem object.

Declaration
public virtual LineItem UpdateLineItem(LineItem lineItem, FieldMask updateMask, CallSettings callSettings = null)
Parameters
Type Name Description
LineItem lineItem

Required. The LineItem to update.

The LineItem's name is used to identify the LineItem to update.

FieldMask updateMask

Optional. The list of fields to update.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
LineItem

The RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = LineItemServiceClient.Create();
// Initialize request argument(s)
LineItem lineItem = new LineItem();
FieldMask updateMask = new FieldMask();
// Make the request
LineItem response = lineItemServiceClient.UpdateLineItem(lineItem, updateMask);

UpdateLineItem(UpdateLineItemRequest, CallSettings)

Updates a LineItem object.

Declaration
public virtual LineItem UpdateLineItem(UpdateLineItemRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
UpdateLineItemRequest 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.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = LineItemServiceClient.Create();
// Initialize request argument(s)
UpdateLineItemRequest request = new UpdateLineItemRequest
{
    LineItem = new LineItem(),
    UpdateMask = new FieldMask(),
};
// Make the request
LineItem response = lineItemServiceClient.UpdateLineItem(request);

UpdateLineItemAsync(LineItem, FieldMask, CallSettings)

Updates a LineItem object.

Declaration
public virtual Task<LineItem> UpdateLineItemAsync(LineItem lineItem, FieldMask updateMask, CallSettings callSettings = null)
Parameters
Type Name Description
LineItem lineItem

Required. The LineItem to update.

The LineItem's name is used to identify the LineItem to update.

FieldMask updateMask

Optional. The list of fields to update.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<LineItem>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
LineItem lineItem = new LineItem();
FieldMask updateMask = new FieldMask();
// Make the request
LineItem response = await lineItemServiceClient.UpdateLineItemAsync(lineItem, updateMask);

UpdateLineItemAsync(LineItem, FieldMask, CancellationToken)

Updates a LineItem object.

Declaration
public virtual Task<LineItem> UpdateLineItemAsync(LineItem lineItem, FieldMask updateMask, CancellationToken cancellationToken)
Parameters
Type Name Description
LineItem lineItem

Required. The LineItem to update.

The LineItem's name is used to identify the LineItem to update.

FieldMask updateMask

Optional. The list of fields to update.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<LineItem>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
LineItem lineItem = new LineItem();
FieldMask updateMask = new FieldMask();
// Make the request
LineItem response = await lineItemServiceClient.UpdateLineItemAsync(lineItem, updateMask);

UpdateLineItemAsync(UpdateLineItemRequest, CallSettings)

Updates a LineItem object.

Declaration
public virtual Task<LineItem> UpdateLineItemAsync(UpdateLineItemRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
UpdateLineItemRequest 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.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateLineItemRequest request = new UpdateLineItemRequest
{
    LineItem = new LineItem(),
    UpdateMask = new FieldMask(),
};
// Make the request
LineItem response = await lineItemServiceClient.UpdateLineItemAsync(request);

UpdateLineItemAsync(UpdateLineItemRequest, CancellationToken)

Updates a LineItem object.

Declaration
public virtual Task<LineItem> UpdateLineItemAsync(UpdateLineItemRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
UpdateLineItemRequest request

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

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<LineItem>

A Task containing the RPC response.

Sample code
// Create client
LineItemServiceClient lineItemServiceClient = await LineItemServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateLineItemRequest request = new UpdateLineItemRequest
{
    LineItem = new LineItem(),
    UpdateMask = new FieldMask(),
};
// Make the request
LineItem response = await lineItemServiceClient.UpdateLineItemAsync(request);
In this article
Back to top Generated by DocFX