Cloud Commerce Producer v1beta API - Class CommerceTransactionClient (1.0.0-beta01)

public abstract class CommerceTransactionClient

Reference documentation and code samples for the Cloud Commerce Producer v1beta API class CommerceTransactionClient.

CommerceTransaction client wrapper, for convenient use.

Inheritance

object > CommerceTransactionClient

Namespace

Google.Cloud.CommerceProducer.V1Beta

Assembly

Google.Cloud.CommerceProducer.V1Beta.dll

Remarks

APIs related to managing resources that model commercial transactions.

Properties

DefaultEndpoint

public static string DefaultEndpoint { get; }

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

Property Value
Type Description
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default CommerceTransaction scopes.

Property Value
Type Description
IReadOnlyListstring
Remarks

The default CommerceTransaction scopes are:

GrpcClient

public virtual CommerceTransaction.CommerceTransactionClient GrpcClient { get; }

The underlying gRPC CommerceTransaction client

Property Value
Type Description
CommerceTransactionCommerceTransactionClient

LocationsClient

public virtual LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
LocationsClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
Type Description
ServiceMetadata

Methods

CancelPrivateOffer(CancelPrivateOfferRequest, CallSettings)

public virtual PrivateOffer CancelPrivateOffer(CancelPrivateOfferRequest request, CallSettings callSettings = null)

Cancels the target PrivateOffer.

Parameters
Name Description
request CancelPrivateOfferRequest

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
PrivateOffer

The RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
CancelPrivateOfferRequest request = new CancelPrivateOfferRequest
{
    PrivateOfferName = PrivateOfferName.FromProjectLocationPrivateOffer("[PROJECT]", "[LOCATION]", "[PRIVATE_OFFER]"),
    CancellationNote = "",
};
// Make the request
PrivateOffer response = commerceTransactionClient.CancelPrivateOffer(request);

CancelPrivateOffer(PrivateOfferName, CallSettings)

public virtual PrivateOffer CancelPrivateOffer(PrivateOfferName name, CallSettings callSettings = null)

Cancels the target PrivateOffer.

Parameters
Name Description
name PrivateOfferName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PrivateOffer

The RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
PrivateOfferName name = PrivateOfferName.FromProjectLocationPrivateOffer("[PROJECT]", "[LOCATION]", "[PRIVATE_OFFER]");
// Make the request
PrivateOffer response = commerceTransactionClient.CancelPrivateOffer(name);

CancelPrivateOffer(string, CallSettings)

public virtual PrivateOffer CancelPrivateOffer(string name, CallSettings callSettings = null)

Cancels the target PrivateOffer.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PrivateOffer

The RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateOffers/[PRIVATE_OFFER]";
// Make the request
PrivateOffer response = commerceTransactionClient.CancelPrivateOffer(name);

CancelPrivateOfferAsync(CancelPrivateOfferRequest, CallSettings)

public virtual Task<PrivateOffer> CancelPrivateOfferAsync(CancelPrivateOfferRequest request, CallSettings callSettings = null)

Cancels the target PrivateOffer.

Parameters
Name Description
request CancelPrivateOfferRequest

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
TaskPrivateOffer

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
CancelPrivateOfferRequest request = new CancelPrivateOfferRequest
{
    PrivateOfferName = PrivateOfferName.FromProjectLocationPrivateOffer("[PROJECT]", "[LOCATION]", "[PRIVATE_OFFER]"),
    CancellationNote = "",
};
// Make the request
PrivateOffer response = await commerceTransactionClient.CancelPrivateOfferAsync(request);

CancelPrivateOfferAsync(CancelPrivateOfferRequest, CancellationToken)

public virtual Task<PrivateOffer> CancelPrivateOfferAsync(CancelPrivateOfferRequest request, CancellationToken cancellationToken)

Cancels the target PrivateOffer.

Parameters
Name Description
request CancelPrivateOfferRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPrivateOffer

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
CancelPrivateOfferRequest request = new CancelPrivateOfferRequest
{
    PrivateOfferName = PrivateOfferName.FromProjectLocationPrivateOffer("[PROJECT]", "[LOCATION]", "[PRIVATE_OFFER]"),
    CancellationNote = "",
};
// Make the request
PrivateOffer response = await commerceTransactionClient.CancelPrivateOfferAsync(request);

CancelPrivateOfferAsync(PrivateOfferName, CallSettings)

public virtual Task<PrivateOffer> CancelPrivateOfferAsync(PrivateOfferName name, CallSettings callSettings = null)

Cancels the target PrivateOffer.

Parameters
Name Description
name PrivateOfferName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPrivateOffer

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
PrivateOfferName name = PrivateOfferName.FromProjectLocationPrivateOffer("[PROJECT]", "[LOCATION]", "[PRIVATE_OFFER]");
// Make the request
PrivateOffer response = await commerceTransactionClient.CancelPrivateOfferAsync(name);

CancelPrivateOfferAsync(PrivateOfferName, CancellationToken)

public virtual Task<PrivateOffer> CancelPrivateOfferAsync(PrivateOfferName name, CancellationToken cancellationToken)

Cancels the target PrivateOffer.

Parameters
Name Description
name PrivateOfferName

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPrivateOffer

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
PrivateOfferName name = PrivateOfferName.FromProjectLocationPrivateOffer("[PROJECT]", "[LOCATION]", "[PRIVATE_OFFER]");
// Make the request
PrivateOffer response = await commerceTransactionClient.CancelPrivateOfferAsync(name);

CancelPrivateOfferAsync(string, CallSettings)

public virtual Task<PrivateOffer> CancelPrivateOfferAsync(string name, CallSettings callSettings = null)

Cancels the target PrivateOffer.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPrivateOffer

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateOffers/[PRIVATE_OFFER]";
// Make the request
PrivateOffer response = await commerceTransactionClient.CancelPrivateOfferAsync(name);

CancelPrivateOfferAsync(string, CancellationToken)

public virtual Task<PrivateOffer> CancelPrivateOfferAsync(string name, CancellationToken cancellationToken)

Cancels the target PrivateOffer.

Parameters
Name Description
name string

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPrivateOffer

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateOffers/[PRIVATE_OFFER]";
// Make the request
PrivateOffer response = await commerceTransactionClient.CancelPrivateOfferAsync(name);

Create()

public static CommerceTransactionClient Create()

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

Returns
Type Description
CommerceTransactionClient

The created CommerceTransactionClient.

CreateAsync(CancellationToken)

public static Task<CommerceTransactionClient> CreateAsync(CancellationToken cancellationToken = default)

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

Parameter
Name Description
cancellationToken CancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
TaskCommerceTransactionClient

The task representing the created CommerceTransactionClient.

CreatePrivateOffer(CreatePrivateOfferRequest, CallSettings)

public virtual PrivateOffer CreatePrivateOffer(CreatePrivateOfferRequest request, CallSettings callSettings = null)

Creates a new PrivateOffer in a given project and location.

Parameters
Name Description
request CreatePrivateOfferRequest

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
PrivateOffer

The RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
CreatePrivateOfferRequest request = new CreatePrivateOfferRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    PrivateOffer = new PrivateOffer(),
};
// Make the request
PrivateOffer response = commerceTransactionClient.CreatePrivateOffer(request);

CreatePrivateOfferAsync(CreatePrivateOfferRequest, CallSettings)

public virtual Task<PrivateOffer> CreatePrivateOfferAsync(CreatePrivateOfferRequest request, CallSettings callSettings = null)

Creates a new PrivateOffer in a given project and location.

Parameters
Name Description
request CreatePrivateOfferRequest

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
TaskPrivateOffer

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
CreatePrivateOfferRequest request = new CreatePrivateOfferRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    PrivateOffer = new PrivateOffer(),
};
// Make the request
PrivateOffer response = await commerceTransactionClient.CreatePrivateOfferAsync(request);

CreatePrivateOfferAsync(CreatePrivateOfferRequest, CancellationToken)

public virtual Task<PrivateOffer> CreatePrivateOfferAsync(CreatePrivateOfferRequest request, CancellationToken cancellationToken)

Creates a new PrivateOffer in a given project and location.

Parameters
Name Description
request CreatePrivateOfferRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPrivateOffer

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
CreatePrivateOfferRequest request = new CreatePrivateOfferRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    PrivateOffer = new PrivateOffer(),
};
// Make the request
PrivateOffer response = await commerceTransactionClient.CreatePrivateOfferAsync(request);

CreatePrivateOfferDocument(CreatePrivateOfferDocumentRequest, CallSettings)

public virtual PrivateOfferDocument CreatePrivateOfferDocument(CreatePrivateOfferDocumentRequest request, CallSettings callSettings = null)

Creates a new PrivateOfferDocument in a given project and location.

Parameters
Name Description
request CreatePrivateOfferDocumentRequest

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
PrivateOfferDocument

The RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
CreatePrivateOfferDocumentRequest request = new CreatePrivateOfferDocumentRequest
{
    ParentAsPrivateOfferName = PrivateOfferName.FromProjectLocationPrivateOffer("[PROJECT]", "[LOCATION]", "[PRIVATE_OFFER]"),
    PrivateOfferDocument = new PrivateOfferDocument(),
};
// Make the request
PrivateOfferDocument response = commerceTransactionClient.CreatePrivateOfferDocument(request);

CreatePrivateOfferDocumentAsync(CreatePrivateOfferDocumentRequest, CallSettings)

public virtual Task<PrivateOfferDocument> CreatePrivateOfferDocumentAsync(CreatePrivateOfferDocumentRequest request, CallSettings callSettings = null)

Creates a new PrivateOfferDocument in a given project and location.

Parameters
Name Description
request CreatePrivateOfferDocumentRequest

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
TaskPrivateOfferDocument

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
CreatePrivateOfferDocumentRequest request = new CreatePrivateOfferDocumentRequest
{
    ParentAsPrivateOfferName = PrivateOfferName.FromProjectLocationPrivateOffer("[PROJECT]", "[LOCATION]", "[PRIVATE_OFFER]"),
    PrivateOfferDocument = new PrivateOfferDocument(),
};
// Make the request
PrivateOfferDocument response = await commerceTransactionClient.CreatePrivateOfferDocumentAsync(request);

CreatePrivateOfferDocumentAsync(CreatePrivateOfferDocumentRequest, CancellationToken)

public virtual Task<PrivateOfferDocument> CreatePrivateOfferDocumentAsync(CreatePrivateOfferDocumentRequest request, CancellationToken cancellationToken)

Creates a new PrivateOfferDocument in a given project and location.

Parameters
Name Description
request CreatePrivateOfferDocumentRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPrivateOfferDocument

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
CreatePrivateOfferDocumentRequest request = new CreatePrivateOfferDocumentRequest
{
    ParentAsPrivateOfferName = PrivateOfferName.FromProjectLocationPrivateOffer("[PROJECT]", "[LOCATION]", "[PRIVATE_OFFER]"),
    PrivateOfferDocument = new PrivateOfferDocument(),
};
// Make the request
PrivateOfferDocument response = await commerceTransactionClient.CreatePrivateOfferDocumentAsync(request);

DeletePrivateOffer(DeletePrivateOfferRequest, CallSettings)

public virtual void DeletePrivateOffer(DeletePrivateOfferRequest request, CallSettings callSettings = null)

Deletes the target PrivateOffer.

Parameters
Name Description
request DeletePrivateOfferRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
DeletePrivateOfferRequest request = new DeletePrivateOfferRequest
{
    PrivateOfferName = PrivateOfferName.FromProjectLocationPrivateOffer("[PROJECT]", "[LOCATION]", "[PRIVATE_OFFER]"),
    Force = false,
};
// Make the request
commerceTransactionClient.DeletePrivateOffer(request);

DeletePrivateOffer(PrivateOfferName, CallSettings)

public virtual void DeletePrivateOffer(PrivateOfferName name, CallSettings callSettings = null)

Deletes the target PrivateOffer.

Parameters
Name Description
name PrivateOfferName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
PrivateOfferName name = PrivateOfferName.FromProjectLocationPrivateOffer("[PROJECT]", "[LOCATION]", "[PRIVATE_OFFER]");
// Make the request
commerceTransactionClient.DeletePrivateOffer(name);

DeletePrivateOffer(string, CallSettings)

public virtual void DeletePrivateOffer(string name, CallSettings callSettings = null)

Deletes the target PrivateOffer.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateOffers/[PRIVATE_OFFER]";
// Make the request
commerceTransactionClient.DeletePrivateOffer(name);

DeletePrivateOfferAsync(DeletePrivateOfferRequest, CallSettings)

public virtual Task DeletePrivateOfferAsync(DeletePrivateOfferRequest request, CallSettings callSettings = null)

Deletes the target PrivateOffer.

Parameters
Name Description
request DeletePrivateOfferRequest

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.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
DeletePrivateOfferRequest request = new DeletePrivateOfferRequest
{
    PrivateOfferName = PrivateOfferName.FromProjectLocationPrivateOffer("[PROJECT]", "[LOCATION]", "[PRIVATE_OFFER]"),
    Force = false,
};
// Make the request
await commerceTransactionClient.DeletePrivateOfferAsync(request);

DeletePrivateOfferAsync(DeletePrivateOfferRequest, CancellationToken)

public virtual Task DeletePrivateOfferAsync(DeletePrivateOfferRequest request, CancellationToken cancellationToken)

Deletes the target PrivateOffer.

Parameters
Name Description
request DeletePrivateOfferRequest

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.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
DeletePrivateOfferRequest request = new DeletePrivateOfferRequest
{
    PrivateOfferName = PrivateOfferName.FromProjectLocationPrivateOffer("[PROJECT]", "[LOCATION]", "[PRIVATE_OFFER]"),
    Force = false,
};
// Make the request
await commerceTransactionClient.DeletePrivateOfferAsync(request);

DeletePrivateOfferAsync(PrivateOfferName, CallSettings)

public virtual Task DeletePrivateOfferAsync(PrivateOfferName name, CallSettings callSettings = null)

Deletes the target PrivateOffer.

Parameters
Name Description
name PrivateOfferName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
PrivateOfferName name = PrivateOfferName.FromProjectLocationPrivateOffer("[PROJECT]", "[LOCATION]", "[PRIVATE_OFFER]");
// Make the request
await commerceTransactionClient.DeletePrivateOfferAsync(name);

DeletePrivateOfferAsync(PrivateOfferName, CancellationToken)

public virtual Task DeletePrivateOfferAsync(PrivateOfferName name, CancellationToken cancellationToken)

Deletes the target PrivateOffer.

Parameters
Name Description
name PrivateOfferName

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
PrivateOfferName name = PrivateOfferName.FromProjectLocationPrivateOffer("[PROJECT]", "[LOCATION]", "[PRIVATE_OFFER]");
// Make the request
await commerceTransactionClient.DeletePrivateOfferAsync(name);

DeletePrivateOfferAsync(string, CallSettings)

public virtual Task DeletePrivateOfferAsync(string name, CallSettings callSettings = null)

Deletes the target PrivateOffer.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateOffers/[PRIVATE_OFFER]";
// Make the request
await commerceTransactionClient.DeletePrivateOfferAsync(name);

DeletePrivateOfferAsync(string, CancellationToken)

public virtual Task DeletePrivateOfferAsync(string name, CancellationToken cancellationToken)

Deletes the target PrivateOffer.

Parameters
Name Description
name string

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateOffers/[PRIVATE_OFFER]";
// Make the request
await commerceTransactionClient.DeletePrivateOfferAsync(name);

DeletePrivateOfferDocument(DeletePrivateOfferDocumentRequest, CallSettings)

public virtual void DeletePrivateOfferDocument(DeletePrivateOfferDocumentRequest request, CallSettings callSettings = null)

Deletes the target PrivateOfferDocument.

Parameters
Name Description
request DeletePrivateOfferDocumentRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
DeletePrivateOfferDocumentRequest request = new DeletePrivateOfferDocumentRequest
{
    PrivateOfferDocumentName = PrivateOfferDocumentName.FromProjectLocationPrivateOfferDocument("[PROJECT]", "[LOCATION]", "[PRIVATE_OFFER]", "[DOCUMENT]"),
};
// Make the request
commerceTransactionClient.DeletePrivateOfferDocument(request);

DeletePrivateOfferDocument(PrivateOfferDocumentName, CallSettings)

public virtual void DeletePrivateOfferDocument(PrivateOfferDocumentName name, CallSettings callSettings = null)

Deletes the target PrivateOfferDocument.

Parameters
Name Description
name PrivateOfferDocumentName

Required. Name of the resource.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
PrivateOfferDocumentName name = PrivateOfferDocumentName.FromProjectLocationPrivateOfferDocument("[PROJECT]", "[LOCATION]", "[PRIVATE_OFFER]", "[DOCUMENT]");
// Make the request
commerceTransactionClient.DeletePrivateOfferDocument(name);

DeletePrivateOfferDocument(string, CallSettings)

public virtual void DeletePrivateOfferDocument(string name, CallSettings callSettings = null)

Deletes the target PrivateOfferDocument.

Parameters
Name Description
name string

Required. Name of the resource.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateOffers/[PRIVATE_OFFER]/documents/[DOCUMENT]";
// Make the request
commerceTransactionClient.DeletePrivateOfferDocument(name);

DeletePrivateOfferDocumentAsync(DeletePrivateOfferDocumentRequest, CallSettings)

public virtual Task DeletePrivateOfferDocumentAsync(DeletePrivateOfferDocumentRequest request, CallSettings callSettings = null)

Deletes the target PrivateOfferDocument.

Parameters
Name Description
request DeletePrivateOfferDocumentRequest

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.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
DeletePrivateOfferDocumentRequest request = new DeletePrivateOfferDocumentRequest
{
    PrivateOfferDocumentName = PrivateOfferDocumentName.FromProjectLocationPrivateOfferDocument("[PROJECT]", "[LOCATION]", "[PRIVATE_OFFER]", "[DOCUMENT]"),
};
// Make the request
await commerceTransactionClient.DeletePrivateOfferDocumentAsync(request);

DeletePrivateOfferDocumentAsync(DeletePrivateOfferDocumentRequest, CancellationToken)

public virtual Task DeletePrivateOfferDocumentAsync(DeletePrivateOfferDocumentRequest request, CancellationToken cancellationToken)

Deletes the target PrivateOfferDocument.

Parameters
Name Description
request DeletePrivateOfferDocumentRequest

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.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
DeletePrivateOfferDocumentRequest request = new DeletePrivateOfferDocumentRequest
{
    PrivateOfferDocumentName = PrivateOfferDocumentName.FromProjectLocationPrivateOfferDocument("[PROJECT]", "[LOCATION]", "[PRIVATE_OFFER]", "[DOCUMENT]"),
};
// Make the request
await commerceTransactionClient.DeletePrivateOfferDocumentAsync(request);

DeletePrivateOfferDocumentAsync(PrivateOfferDocumentName, CallSettings)

public virtual Task DeletePrivateOfferDocumentAsync(PrivateOfferDocumentName name, CallSettings callSettings = null)

Deletes the target PrivateOfferDocument.

Parameters
Name Description
name PrivateOfferDocumentName

Required. Name of the resource.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
PrivateOfferDocumentName name = PrivateOfferDocumentName.FromProjectLocationPrivateOfferDocument("[PROJECT]", "[LOCATION]", "[PRIVATE_OFFER]", "[DOCUMENT]");
// Make the request
await commerceTransactionClient.DeletePrivateOfferDocumentAsync(name);

DeletePrivateOfferDocumentAsync(PrivateOfferDocumentName, CancellationToken)

public virtual Task DeletePrivateOfferDocumentAsync(PrivateOfferDocumentName name, CancellationToken cancellationToken)

Deletes the target PrivateOfferDocument.

Parameters
Name Description
name PrivateOfferDocumentName

Required. Name of the resource.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
PrivateOfferDocumentName name = PrivateOfferDocumentName.FromProjectLocationPrivateOfferDocument("[PROJECT]", "[LOCATION]", "[PRIVATE_OFFER]", "[DOCUMENT]");
// Make the request
await commerceTransactionClient.DeletePrivateOfferDocumentAsync(name);

DeletePrivateOfferDocumentAsync(string, CallSettings)

public virtual Task DeletePrivateOfferDocumentAsync(string name, CallSettings callSettings = null)

Deletes the target PrivateOfferDocument.

Parameters
Name Description
name string

Required. Name of the resource.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateOffers/[PRIVATE_OFFER]/documents/[DOCUMENT]";
// Make the request
await commerceTransactionClient.DeletePrivateOfferDocumentAsync(name);

DeletePrivateOfferDocumentAsync(string, CancellationToken)

public virtual Task DeletePrivateOfferDocumentAsync(string name, CancellationToken cancellationToken)

Deletes the target PrivateOfferDocument.

Parameters
Name Description
name string

Required. Name of the resource.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateOffers/[PRIVATE_OFFER]/documents/[DOCUMENT]";
// Make the request
await commerceTransactionClient.DeletePrivateOfferDocumentAsync(name);

GetPrivateOffer(GetPrivateOfferRequest, CallSettings)

public virtual PrivateOffer GetPrivateOffer(GetPrivateOfferRequest request, CallSettings callSettings = null)

Gets details of a single PrivateOffer.

Parameters
Name Description
request GetPrivateOfferRequest

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
PrivateOffer

The RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
GetPrivateOfferRequest request = new GetPrivateOfferRequest
{
    PrivateOfferName = PrivateOfferName.FromProjectLocationPrivateOffer("[PROJECT]", "[LOCATION]", "[PRIVATE_OFFER]"),
    View = PrivateOfferView.Unspecified,
};
// Make the request
PrivateOffer response = commerceTransactionClient.GetPrivateOffer(request);

GetPrivateOffer(PrivateOfferName, CallSettings)

public virtual PrivateOffer GetPrivateOffer(PrivateOfferName name, CallSettings callSettings = null)

Gets details of a single PrivateOffer.

Parameters
Name Description
name PrivateOfferName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PrivateOffer

The RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
PrivateOfferName name = PrivateOfferName.FromProjectLocationPrivateOffer("[PROJECT]", "[LOCATION]", "[PRIVATE_OFFER]");
// Make the request
PrivateOffer response = commerceTransactionClient.GetPrivateOffer(name);

GetPrivateOffer(string, CallSettings)

public virtual PrivateOffer GetPrivateOffer(string name, CallSettings callSettings = null)

Gets details of a single PrivateOffer.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PrivateOffer

The RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateOffers/[PRIVATE_OFFER]";
// Make the request
PrivateOffer response = commerceTransactionClient.GetPrivateOffer(name);

GetPrivateOfferAsync(GetPrivateOfferRequest, CallSettings)

public virtual Task<PrivateOffer> GetPrivateOfferAsync(GetPrivateOfferRequest request, CallSettings callSettings = null)

Gets details of a single PrivateOffer.

Parameters
Name Description
request GetPrivateOfferRequest

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
TaskPrivateOffer

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
GetPrivateOfferRequest request = new GetPrivateOfferRequest
{
    PrivateOfferName = PrivateOfferName.FromProjectLocationPrivateOffer("[PROJECT]", "[LOCATION]", "[PRIVATE_OFFER]"),
    View = PrivateOfferView.Unspecified,
};
// Make the request
PrivateOffer response = await commerceTransactionClient.GetPrivateOfferAsync(request);

GetPrivateOfferAsync(GetPrivateOfferRequest, CancellationToken)

public virtual Task<PrivateOffer> GetPrivateOfferAsync(GetPrivateOfferRequest request, CancellationToken cancellationToken)

Gets details of a single PrivateOffer.

Parameters
Name Description
request GetPrivateOfferRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPrivateOffer

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
GetPrivateOfferRequest request = new GetPrivateOfferRequest
{
    PrivateOfferName = PrivateOfferName.FromProjectLocationPrivateOffer("[PROJECT]", "[LOCATION]", "[PRIVATE_OFFER]"),
    View = PrivateOfferView.Unspecified,
};
// Make the request
PrivateOffer response = await commerceTransactionClient.GetPrivateOfferAsync(request);

GetPrivateOfferAsync(PrivateOfferName, CallSettings)

public virtual Task<PrivateOffer> GetPrivateOfferAsync(PrivateOfferName name, CallSettings callSettings = null)

Gets details of a single PrivateOffer.

Parameters
Name Description
name PrivateOfferName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPrivateOffer

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
PrivateOfferName name = PrivateOfferName.FromProjectLocationPrivateOffer("[PROJECT]", "[LOCATION]", "[PRIVATE_OFFER]");
// Make the request
PrivateOffer response = await commerceTransactionClient.GetPrivateOfferAsync(name);

GetPrivateOfferAsync(PrivateOfferName, CancellationToken)

public virtual Task<PrivateOffer> GetPrivateOfferAsync(PrivateOfferName name, CancellationToken cancellationToken)

Gets details of a single PrivateOffer.

Parameters
Name Description
name PrivateOfferName

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPrivateOffer

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
PrivateOfferName name = PrivateOfferName.FromProjectLocationPrivateOffer("[PROJECT]", "[LOCATION]", "[PRIVATE_OFFER]");
// Make the request
PrivateOffer response = await commerceTransactionClient.GetPrivateOfferAsync(name);

GetPrivateOfferAsync(string, CallSettings)

public virtual Task<PrivateOffer> GetPrivateOfferAsync(string name, CallSettings callSettings = null)

Gets details of a single PrivateOffer.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPrivateOffer

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateOffers/[PRIVATE_OFFER]";
// Make the request
PrivateOffer response = await commerceTransactionClient.GetPrivateOfferAsync(name);

GetPrivateOfferAsync(string, CancellationToken)

public virtual Task<PrivateOffer> GetPrivateOfferAsync(string name, CancellationToken cancellationToken)

Gets details of a single PrivateOffer.

Parameters
Name Description
name string

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPrivateOffer

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateOffers/[PRIVATE_OFFER]";
// Make the request
PrivateOffer response = await commerceTransactionClient.GetPrivateOfferAsync(name);

GetPrivateOfferDocument(GetPrivateOfferDocumentRequest, CallSettings)

public virtual PrivateOfferDocument GetPrivateOfferDocument(GetPrivateOfferDocumentRequest request, CallSettings callSettings = null)

Gets details of a single PrivateOfferDocument.

Parameters
Name Description
request GetPrivateOfferDocumentRequest

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
PrivateOfferDocument

The RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
GetPrivateOfferDocumentRequest request = new GetPrivateOfferDocumentRequest
{
    PrivateOfferDocumentName = PrivateOfferDocumentName.FromProjectLocationPrivateOfferDocument("[PROJECT]", "[LOCATION]", "[PRIVATE_OFFER]", "[DOCUMENT]"),
};
// Make the request
PrivateOfferDocument response = commerceTransactionClient.GetPrivateOfferDocument(request);

GetPrivateOfferDocument(PrivateOfferDocumentName, CallSettings)

public virtual PrivateOfferDocument GetPrivateOfferDocument(PrivateOfferDocumentName name, CallSettings callSettings = null)

Gets details of a single PrivateOfferDocument.

Parameters
Name Description
name PrivateOfferDocumentName

Required. Name of the resource.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PrivateOfferDocument

The RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
PrivateOfferDocumentName name = PrivateOfferDocumentName.FromProjectLocationPrivateOfferDocument("[PROJECT]", "[LOCATION]", "[PRIVATE_OFFER]", "[DOCUMENT]");
// Make the request
PrivateOfferDocument response = commerceTransactionClient.GetPrivateOfferDocument(name);

GetPrivateOfferDocument(string, CallSettings)

public virtual PrivateOfferDocument GetPrivateOfferDocument(string name, CallSettings callSettings = null)

Gets details of a single PrivateOfferDocument.

Parameters
Name Description
name string

Required. Name of the resource.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PrivateOfferDocument

The RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateOffers/[PRIVATE_OFFER]/documents/[DOCUMENT]";
// Make the request
PrivateOfferDocument response = commerceTransactionClient.GetPrivateOfferDocument(name);

GetPrivateOfferDocumentAsync(GetPrivateOfferDocumentRequest, CallSettings)

public virtual Task<PrivateOfferDocument> GetPrivateOfferDocumentAsync(GetPrivateOfferDocumentRequest request, CallSettings callSettings = null)

Gets details of a single PrivateOfferDocument.

Parameters
Name Description
request GetPrivateOfferDocumentRequest

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
TaskPrivateOfferDocument

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
GetPrivateOfferDocumentRequest request = new GetPrivateOfferDocumentRequest
{
    PrivateOfferDocumentName = PrivateOfferDocumentName.FromProjectLocationPrivateOfferDocument("[PROJECT]", "[LOCATION]", "[PRIVATE_OFFER]", "[DOCUMENT]"),
};
// Make the request
PrivateOfferDocument response = await commerceTransactionClient.GetPrivateOfferDocumentAsync(request);

GetPrivateOfferDocumentAsync(GetPrivateOfferDocumentRequest, CancellationToken)

public virtual Task<PrivateOfferDocument> GetPrivateOfferDocumentAsync(GetPrivateOfferDocumentRequest request, CancellationToken cancellationToken)

Gets details of a single PrivateOfferDocument.

Parameters
Name Description
request GetPrivateOfferDocumentRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPrivateOfferDocument

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
GetPrivateOfferDocumentRequest request = new GetPrivateOfferDocumentRequest
{
    PrivateOfferDocumentName = PrivateOfferDocumentName.FromProjectLocationPrivateOfferDocument("[PROJECT]", "[LOCATION]", "[PRIVATE_OFFER]", "[DOCUMENT]"),
};
// Make the request
PrivateOfferDocument response = await commerceTransactionClient.GetPrivateOfferDocumentAsync(request);

GetPrivateOfferDocumentAsync(PrivateOfferDocumentName, CallSettings)

public virtual Task<PrivateOfferDocument> GetPrivateOfferDocumentAsync(PrivateOfferDocumentName name, CallSettings callSettings = null)

Gets details of a single PrivateOfferDocument.

Parameters
Name Description
name PrivateOfferDocumentName

Required. Name of the resource.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPrivateOfferDocument

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
PrivateOfferDocumentName name = PrivateOfferDocumentName.FromProjectLocationPrivateOfferDocument("[PROJECT]", "[LOCATION]", "[PRIVATE_OFFER]", "[DOCUMENT]");
// Make the request
PrivateOfferDocument response = await commerceTransactionClient.GetPrivateOfferDocumentAsync(name);

GetPrivateOfferDocumentAsync(PrivateOfferDocumentName, CancellationToken)

public virtual Task<PrivateOfferDocument> GetPrivateOfferDocumentAsync(PrivateOfferDocumentName name, CancellationToken cancellationToken)

Gets details of a single PrivateOfferDocument.

Parameters
Name Description
name PrivateOfferDocumentName

Required. Name of the resource.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPrivateOfferDocument

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
PrivateOfferDocumentName name = PrivateOfferDocumentName.FromProjectLocationPrivateOfferDocument("[PROJECT]", "[LOCATION]", "[PRIVATE_OFFER]", "[DOCUMENT]");
// Make the request
PrivateOfferDocument response = await commerceTransactionClient.GetPrivateOfferDocumentAsync(name);

GetPrivateOfferDocumentAsync(string, CallSettings)

public virtual Task<PrivateOfferDocument> GetPrivateOfferDocumentAsync(string name, CallSettings callSettings = null)

Gets details of a single PrivateOfferDocument.

Parameters
Name Description
name string

Required. Name of the resource.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPrivateOfferDocument

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateOffers/[PRIVATE_OFFER]/documents/[DOCUMENT]";
// Make the request
PrivateOfferDocument response = await commerceTransactionClient.GetPrivateOfferDocumentAsync(name);

GetPrivateOfferDocumentAsync(string, CancellationToken)

public virtual Task<PrivateOfferDocument> GetPrivateOfferDocumentAsync(string name, CancellationToken cancellationToken)

Gets details of a single PrivateOfferDocument.

Parameters
Name Description
name string

Required. Name of the resource.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPrivateOfferDocument

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateOffers/[PRIVATE_OFFER]/documents/[DOCUMENT]";
// Make the request
PrivateOfferDocument response = await commerceTransactionClient.GetPrivateOfferDocumentAsync(name);

GetService(GetServiceRequest, CallSettings)

public virtual Service GetService(GetServiceRequest request, CallSettings callSettings = null)

Gets details of a single Service.

Parameters
Name Description
request GetServiceRequest

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
Service

The RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
GetServiceRequest request = new GetServiceRequest
{
    ServiceName = ServiceName.FromProjectLocationService("[PROJECT]", "[LOCATION]", "[SERVICE]"),
    View = ServiceView.Unspecified,
};
// Make the request
Service response = commerceTransactionClient.GetService(request);

GetService(ServiceName, CallSettings)

public virtual Service GetService(ServiceName name, CallSettings callSettings = null)

Gets details of a single Service.

Parameters
Name Description
name ServiceName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Service

The RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
ServiceName name = ServiceName.FromProjectLocationService("[PROJECT]", "[LOCATION]", "[SERVICE]");
// Make the request
Service response = commerceTransactionClient.GetService(name);

GetService(string, CallSettings)

public virtual Service GetService(string name, CallSettings callSettings = null)

Gets details of a single Service.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Service

The RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/services/[SERVICE]";
// Make the request
Service response = commerceTransactionClient.GetService(name);

GetServiceAsync(GetServiceRequest, CallSettings)

public virtual Task<Service> GetServiceAsync(GetServiceRequest request, CallSettings callSettings = null)

Gets details of a single Service.

Parameters
Name Description
request GetServiceRequest

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
TaskService

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
GetServiceRequest request = new GetServiceRequest
{
    ServiceName = ServiceName.FromProjectLocationService("[PROJECT]", "[LOCATION]", "[SERVICE]"),
    View = ServiceView.Unspecified,
};
// Make the request
Service response = await commerceTransactionClient.GetServiceAsync(request);

GetServiceAsync(GetServiceRequest, CancellationToken)

public virtual Task<Service> GetServiceAsync(GetServiceRequest request, CancellationToken cancellationToken)

Gets details of a single Service.

Parameters
Name Description
request GetServiceRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskService

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
GetServiceRequest request = new GetServiceRequest
{
    ServiceName = ServiceName.FromProjectLocationService("[PROJECT]", "[LOCATION]", "[SERVICE]"),
    View = ServiceView.Unspecified,
};
// Make the request
Service response = await commerceTransactionClient.GetServiceAsync(request);

GetServiceAsync(ServiceName, CallSettings)

public virtual Task<Service> GetServiceAsync(ServiceName name, CallSettings callSettings = null)

Gets details of a single Service.

Parameters
Name Description
name ServiceName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskService

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
ServiceName name = ServiceName.FromProjectLocationService("[PROJECT]", "[LOCATION]", "[SERVICE]");
// Make the request
Service response = await commerceTransactionClient.GetServiceAsync(name);

GetServiceAsync(ServiceName, CancellationToken)

public virtual Task<Service> GetServiceAsync(ServiceName name, CancellationToken cancellationToken)

Gets details of a single Service.

Parameters
Name Description
name ServiceName

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskService

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
ServiceName name = ServiceName.FromProjectLocationService("[PROJECT]", "[LOCATION]", "[SERVICE]");
// Make the request
Service response = await commerceTransactionClient.GetServiceAsync(name);

GetServiceAsync(string, CallSettings)

public virtual Task<Service> GetServiceAsync(string name, CallSettings callSettings = null)

Gets details of a single Service.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskService

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/services/[SERVICE]";
// Make the request
Service response = await commerceTransactionClient.GetServiceAsync(name);

GetServiceAsync(string, CancellationToken)

public virtual Task<Service> GetServiceAsync(string name, CancellationToken cancellationToken)

Gets details of a single Service.

Parameters
Name Description
name string

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskService

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/services/[SERVICE]";
// Make the request
Service response = await commerceTransactionClient.GetServiceAsync(name);

GetSku(GetSkuRequest, CallSettings)

public virtual Sku GetSku(GetSkuRequest request, CallSettings callSettings = null)

Gets details of a single Sku.

Parameters
Name Description
request GetSkuRequest

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
Sku

The RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
GetSkuRequest request = new GetSkuRequest
{
    SkuName = SkuName.FromProjectLocationServiceSku("[PROJECT]", "[LOCATION]", "[SERVICE]", "[SKU]"),
};
// Make the request
Sku response = commerceTransactionClient.GetSku(request);

GetSku(SkuName, CallSettings)

public virtual Sku GetSku(SkuName name, CallSettings callSettings = null)

Gets details of a single Sku.

Parameters
Name Description
name SkuName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Sku

The RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
SkuName name = SkuName.FromProjectLocationServiceSku("[PROJECT]", "[LOCATION]", "[SERVICE]", "[SKU]");
// Make the request
Sku response = commerceTransactionClient.GetSku(name);

GetSku(string, CallSettings)

public virtual Sku GetSku(string name, CallSettings callSettings = null)

Gets details of a single Sku.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Sku

The RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/services/[SERVICE]/skus/[SKU]";
// Make the request
Sku response = commerceTransactionClient.GetSku(name);

GetSkuAsync(GetSkuRequest, CallSettings)

public virtual Task<Sku> GetSkuAsync(GetSkuRequest request, CallSettings callSettings = null)

Gets details of a single Sku.

Parameters
Name Description
request GetSkuRequest

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
TaskSku

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
GetSkuRequest request = new GetSkuRequest
{
    SkuName = SkuName.FromProjectLocationServiceSku("[PROJECT]", "[LOCATION]", "[SERVICE]", "[SKU]"),
};
// Make the request
Sku response = await commerceTransactionClient.GetSkuAsync(request);

GetSkuAsync(GetSkuRequest, CancellationToken)

public virtual Task<Sku> GetSkuAsync(GetSkuRequest request, CancellationToken cancellationToken)

Gets details of a single Sku.

Parameters
Name Description
request GetSkuRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskSku

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
GetSkuRequest request = new GetSkuRequest
{
    SkuName = SkuName.FromProjectLocationServiceSku("[PROJECT]", "[LOCATION]", "[SERVICE]", "[SKU]"),
};
// Make the request
Sku response = await commerceTransactionClient.GetSkuAsync(request);

GetSkuAsync(SkuName, CallSettings)

public virtual Task<Sku> GetSkuAsync(SkuName name, CallSettings callSettings = null)

Gets details of a single Sku.

Parameters
Name Description
name SkuName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSku

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
SkuName name = SkuName.FromProjectLocationServiceSku("[PROJECT]", "[LOCATION]", "[SERVICE]", "[SKU]");
// Make the request
Sku response = await commerceTransactionClient.GetSkuAsync(name);

GetSkuAsync(SkuName, CancellationToken)

public virtual Task<Sku> GetSkuAsync(SkuName name, CancellationToken cancellationToken)

Gets details of a single Sku.

Parameters
Name Description
name SkuName

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskSku

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
SkuName name = SkuName.FromProjectLocationServiceSku("[PROJECT]", "[LOCATION]", "[SERVICE]", "[SKU]");
// Make the request
Sku response = await commerceTransactionClient.GetSkuAsync(name);

GetSkuAsync(string, CallSettings)

public virtual Task<Sku> GetSkuAsync(string name, CallSettings callSettings = null)

Gets details of a single Sku.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSku

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/services/[SERVICE]/skus/[SKU]";
// Make the request
Sku response = await commerceTransactionClient.GetSkuAsync(name);

GetSkuAsync(string, CancellationToken)

public virtual Task<Sku> GetSkuAsync(string name, CancellationToken cancellationToken)

Gets details of a single Sku.

Parameters
Name Description
name string

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskSku

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/services/[SERVICE]/skus/[SKU]";
// Make the request
Sku response = await commerceTransactionClient.GetSkuAsync(name);

GetSkuGroup(GetSkuGroupRequest, CallSettings)

public virtual SkuGroup GetSkuGroup(GetSkuGroupRequest request, CallSettings callSettings = null)

Gets details of a single SkuGroup.

Parameters
Name Description
request GetSkuGroupRequest

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
SkuGroup

The RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
GetSkuGroupRequest request = new GetSkuGroupRequest
{
    SkuGroupName = SkuGroupName.FromProjectLocationSkuGroup("[PROJECT]", "[LOCATION]", "[SKU_GROUP]"),
};
// Make the request
SkuGroup response = commerceTransactionClient.GetSkuGroup(request);

GetSkuGroup(SkuGroupName, CallSettings)

public virtual SkuGroup GetSkuGroup(SkuGroupName name, CallSettings callSettings = null)

Gets details of a single SkuGroup.

Parameters
Name Description
name SkuGroupName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
SkuGroup

The RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
SkuGroupName name = SkuGroupName.FromProjectLocationSkuGroup("[PROJECT]", "[LOCATION]", "[SKU_GROUP]");
// Make the request
SkuGroup response = commerceTransactionClient.GetSkuGroup(name);

GetSkuGroup(string, CallSettings)

public virtual SkuGroup GetSkuGroup(string name, CallSettings callSettings = null)

Gets details of a single SkuGroup.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
SkuGroup

The RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/skuGroups/[SKU_GROUP]";
// Make the request
SkuGroup response = commerceTransactionClient.GetSkuGroup(name);

GetSkuGroupAsync(GetSkuGroupRequest, CallSettings)

public virtual Task<SkuGroup> GetSkuGroupAsync(GetSkuGroupRequest request, CallSettings callSettings = null)

Gets details of a single SkuGroup.

Parameters
Name Description
request GetSkuGroupRequest

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
TaskSkuGroup

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
GetSkuGroupRequest request = new GetSkuGroupRequest
{
    SkuGroupName = SkuGroupName.FromProjectLocationSkuGroup("[PROJECT]", "[LOCATION]", "[SKU_GROUP]"),
};
// Make the request
SkuGroup response = await commerceTransactionClient.GetSkuGroupAsync(request);

GetSkuGroupAsync(GetSkuGroupRequest, CancellationToken)

public virtual Task<SkuGroup> GetSkuGroupAsync(GetSkuGroupRequest request, CancellationToken cancellationToken)

Gets details of a single SkuGroup.

Parameters
Name Description
request GetSkuGroupRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskSkuGroup

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
GetSkuGroupRequest request = new GetSkuGroupRequest
{
    SkuGroupName = SkuGroupName.FromProjectLocationSkuGroup("[PROJECT]", "[LOCATION]", "[SKU_GROUP]"),
};
// Make the request
SkuGroup response = await commerceTransactionClient.GetSkuGroupAsync(request);

GetSkuGroupAsync(SkuGroupName, CallSettings)

public virtual Task<SkuGroup> GetSkuGroupAsync(SkuGroupName name, CallSettings callSettings = null)

Gets details of a single SkuGroup.

Parameters
Name Description
name SkuGroupName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSkuGroup

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
SkuGroupName name = SkuGroupName.FromProjectLocationSkuGroup("[PROJECT]", "[LOCATION]", "[SKU_GROUP]");
// Make the request
SkuGroup response = await commerceTransactionClient.GetSkuGroupAsync(name);

GetSkuGroupAsync(SkuGroupName, CancellationToken)

public virtual Task<SkuGroup> GetSkuGroupAsync(SkuGroupName name, CancellationToken cancellationToken)

Gets details of a single SkuGroup.

Parameters
Name Description
name SkuGroupName

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskSkuGroup

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
SkuGroupName name = SkuGroupName.FromProjectLocationSkuGroup("[PROJECT]", "[LOCATION]", "[SKU_GROUP]");
// Make the request
SkuGroup response = await commerceTransactionClient.GetSkuGroupAsync(name);

GetSkuGroupAsync(string, CallSettings)

public virtual Task<SkuGroup> GetSkuGroupAsync(string name, CallSettings callSettings = null)

Gets details of a single SkuGroup.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSkuGroup

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/skuGroups/[SKU_GROUP]";
// Make the request
SkuGroup response = await commerceTransactionClient.GetSkuGroupAsync(name);

GetSkuGroupAsync(string, CancellationToken)

public virtual Task<SkuGroup> GetSkuGroupAsync(string name, CancellationToken cancellationToken)

Gets details of a single SkuGroup.

Parameters
Name Description
name string

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskSkuGroup

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/skuGroups/[SKU_GROUP]";
// Make the request
SkuGroup response = await commerceTransactionClient.GetSkuGroupAsync(name);

GetStandardOffer(GetStandardOfferRequest, CallSettings)

public virtual StandardOffer GetStandardOffer(GetStandardOfferRequest request, CallSettings callSettings = null)

Gets details of a single StandardOffer.

Parameters
Name Description
request GetStandardOfferRequest

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
StandardOffer

The RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
GetStandardOfferRequest request = new GetStandardOfferRequest
{
    StandardOfferName = StandardOfferName.FromProjectLocationServiceStandardOffer("[PROJECT]", "[LOCATION]", "[SERVICE]", "[STANDARD_OFFER]"),
    View = StandardOfferView.Unspecified,
};
// Make the request
StandardOffer response = commerceTransactionClient.GetStandardOffer(request);

GetStandardOffer(StandardOfferName, CallSettings)

public virtual StandardOffer GetStandardOffer(StandardOfferName name, CallSettings callSettings = null)

Gets details of a single StandardOffer.

Parameters
Name Description
name StandardOfferName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
StandardOffer

The RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
StandardOfferName name = StandardOfferName.FromProjectLocationServiceStandardOffer("[PROJECT]", "[LOCATION]", "[SERVICE]", "[STANDARD_OFFER]");
// Make the request
StandardOffer response = commerceTransactionClient.GetStandardOffer(name);

GetStandardOffer(string, CallSettings)

public virtual StandardOffer GetStandardOffer(string name, CallSettings callSettings = null)

Gets details of a single StandardOffer.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
StandardOffer

The RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/services/[SERVICE]/standardOffers/[STANDARD_OFFER]";
// Make the request
StandardOffer response = commerceTransactionClient.GetStandardOffer(name);

GetStandardOfferAsync(GetStandardOfferRequest, CallSettings)

public virtual Task<StandardOffer> GetStandardOfferAsync(GetStandardOfferRequest request, CallSettings callSettings = null)

Gets details of a single StandardOffer.

Parameters
Name Description
request GetStandardOfferRequest

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
TaskStandardOffer

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
GetStandardOfferRequest request = new GetStandardOfferRequest
{
    StandardOfferName = StandardOfferName.FromProjectLocationServiceStandardOffer("[PROJECT]", "[LOCATION]", "[SERVICE]", "[STANDARD_OFFER]"),
    View = StandardOfferView.Unspecified,
};
// Make the request
StandardOffer response = await commerceTransactionClient.GetStandardOfferAsync(request);

GetStandardOfferAsync(GetStandardOfferRequest, CancellationToken)

public virtual Task<StandardOffer> GetStandardOfferAsync(GetStandardOfferRequest request, CancellationToken cancellationToken)

Gets details of a single StandardOffer.

Parameters
Name Description
request GetStandardOfferRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskStandardOffer

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
GetStandardOfferRequest request = new GetStandardOfferRequest
{
    StandardOfferName = StandardOfferName.FromProjectLocationServiceStandardOffer("[PROJECT]", "[LOCATION]", "[SERVICE]", "[STANDARD_OFFER]"),
    View = StandardOfferView.Unspecified,
};
// Make the request
StandardOffer response = await commerceTransactionClient.GetStandardOfferAsync(request);

GetStandardOfferAsync(StandardOfferName, CallSettings)

public virtual Task<StandardOffer> GetStandardOfferAsync(StandardOfferName name, CallSettings callSettings = null)

Gets details of a single StandardOffer.

Parameters
Name Description
name StandardOfferName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskStandardOffer

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
StandardOfferName name = StandardOfferName.FromProjectLocationServiceStandardOffer("[PROJECT]", "[LOCATION]", "[SERVICE]", "[STANDARD_OFFER]");
// Make the request
StandardOffer response = await commerceTransactionClient.GetStandardOfferAsync(name);

GetStandardOfferAsync(StandardOfferName, CancellationToken)

public virtual Task<StandardOffer> GetStandardOfferAsync(StandardOfferName name, CancellationToken cancellationToken)

Gets details of a single StandardOffer.

Parameters
Name Description
name StandardOfferName

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskStandardOffer

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
StandardOfferName name = StandardOfferName.FromProjectLocationServiceStandardOffer("[PROJECT]", "[LOCATION]", "[SERVICE]", "[STANDARD_OFFER]");
// Make the request
StandardOffer response = await commerceTransactionClient.GetStandardOfferAsync(name);

GetStandardOfferAsync(string, CallSettings)

public virtual Task<StandardOffer> GetStandardOfferAsync(string name, CallSettings callSettings = null)

Gets details of a single StandardOffer.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskStandardOffer

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/services/[SERVICE]/standardOffers/[STANDARD_OFFER]";
// Make the request
StandardOffer response = await commerceTransactionClient.GetStandardOfferAsync(name);

GetStandardOfferAsync(string, CancellationToken)

public virtual Task<StandardOffer> GetStandardOfferAsync(string name, CancellationToken cancellationToken)

Gets details of a single StandardOffer.

Parameters
Name Description
name string

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskStandardOffer

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/services/[SERVICE]/standardOffers/[STANDARD_OFFER]";
// Make the request
StandardOffer response = await commerceTransactionClient.GetStandardOfferAsync(name);

ListPrivateOfferDocuments(ListPrivateOfferDocumentsRequest, CallSettings)

public virtual PagedEnumerable<ListPrivateOfferDocumentsResponse, PrivateOfferDocument> ListPrivateOfferDocuments(ListPrivateOfferDocumentsRequest request, CallSettings callSettings = null)

Lists PrivateOfferDocuments for the given parent.

Parameters
Name Description
request ListPrivateOfferDocumentsRequest

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
PagedEnumerableListPrivateOfferDocumentsResponsePrivateOfferDocument

A pageable sequence of PrivateOfferDocument resources.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
ListPrivateOfferDocumentsRequest request = new ListPrivateOfferDocumentsRequest
{
    ParentAsPrivateOfferName = PrivateOfferName.FromProjectLocationPrivateOffer("[PROJECT]", "[LOCATION]", "[PRIVATE_OFFER]"),
};
// Make the request
PagedEnumerable<ListPrivateOfferDocumentsResponse, PrivateOfferDocument> response = commerceTransactionClient.ListPrivateOfferDocuments(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (PrivateOfferDocument 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 (ListPrivateOfferDocumentsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (PrivateOfferDocument 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<PrivateOfferDocument> 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 (PrivateOfferDocument 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;

ListPrivateOfferDocuments(PrivateOfferName, string, int?, CallSettings)

public virtual PagedEnumerable<ListPrivateOfferDocumentsResponse, PrivateOfferDocument> ListPrivateOfferDocuments(PrivateOfferName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists PrivateOfferDocuments for the given parent.

Parameters
Name Description
parent PrivateOfferName

Required. Parent value for ListPrivateOfferDocumentsRequest.

pageToken string

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

pageSize int

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
PagedEnumerableListPrivateOfferDocumentsResponsePrivateOfferDocument

A pageable sequence of PrivateOfferDocument resources.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
PrivateOfferName parent = PrivateOfferName.FromProjectLocationPrivateOffer("[PROJECT]", "[LOCATION]", "[PRIVATE_OFFER]");
// Make the request
PagedEnumerable<ListPrivateOfferDocumentsResponse, PrivateOfferDocument> response = commerceTransactionClient.ListPrivateOfferDocuments(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (PrivateOfferDocument 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 (ListPrivateOfferDocumentsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (PrivateOfferDocument 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<PrivateOfferDocument> 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 (PrivateOfferDocument 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;

ListPrivateOfferDocuments(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListPrivateOfferDocumentsResponse, PrivateOfferDocument> ListPrivateOfferDocuments(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists PrivateOfferDocuments for the given parent.

Parameters
Name Description
parent string

Required. Parent value for ListPrivateOfferDocumentsRequest.

pageToken string

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

pageSize int

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
PagedEnumerableListPrivateOfferDocumentsResponsePrivateOfferDocument

A pageable sequence of PrivateOfferDocument resources.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/privateOffers/[PRIVATE_OFFER]";
// Make the request
PagedEnumerable<ListPrivateOfferDocumentsResponse, PrivateOfferDocument> response = commerceTransactionClient.ListPrivateOfferDocuments(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (PrivateOfferDocument 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 (ListPrivateOfferDocumentsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (PrivateOfferDocument 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<PrivateOfferDocument> 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 (PrivateOfferDocument 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;

ListPrivateOfferDocumentsAsync(ListPrivateOfferDocumentsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListPrivateOfferDocumentsResponse, PrivateOfferDocument> ListPrivateOfferDocumentsAsync(ListPrivateOfferDocumentsRequest request, CallSettings callSettings = null)

Lists PrivateOfferDocuments for the given parent.

Parameters
Name Description
request ListPrivateOfferDocumentsRequest

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
PagedAsyncEnumerableListPrivateOfferDocumentsResponsePrivateOfferDocument

A pageable asynchronous sequence of PrivateOfferDocument resources.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
ListPrivateOfferDocumentsRequest request = new ListPrivateOfferDocumentsRequest
{
    ParentAsPrivateOfferName = PrivateOfferName.FromProjectLocationPrivateOffer("[PROJECT]", "[LOCATION]", "[PRIVATE_OFFER]"),
};
// Make the request
PagedAsyncEnumerable<ListPrivateOfferDocumentsResponse, PrivateOfferDocument> response = commerceTransactionClient.ListPrivateOfferDocumentsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await foreach (PrivateOfferDocument 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 (ListPrivateOfferDocumentsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (PrivateOfferDocument 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<PrivateOfferDocument> 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 (PrivateOfferDocument 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;

ListPrivateOfferDocumentsAsync(PrivateOfferName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListPrivateOfferDocumentsResponse, PrivateOfferDocument> ListPrivateOfferDocumentsAsync(PrivateOfferName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists PrivateOfferDocuments for the given parent.

Parameters
Name Description
parent PrivateOfferName

Required. Parent value for ListPrivateOfferDocumentsRequest.

pageToken string

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

pageSize int

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
PagedAsyncEnumerableListPrivateOfferDocumentsResponsePrivateOfferDocument

A pageable asynchronous sequence of PrivateOfferDocument resources.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
PrivateOfferName parent = PrivateOfferName.FromProjectLocationPrivateOffer("[PROJECT]", "[LOCATION]", "[PRIVATE_OFFER]");
// Make the request
PagedAsyncEnumerable<ListPrivateOfferDocumentsResponse, PrivateOfferDocument> response = commerceTransactionClient.ListPrivateOfferDocumentsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (PrivateOfferDocument 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 (ListPrivateOfferDocumentsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (PrivateOfferDocument 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<PrivateOfferDocument> 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 (PrivateOfferDocument 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;

ListPrivateOfferDocumentsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListPrivateOfferDocumentsResponse, PrivateOfferDocument> ListPrivateOfferDocumentsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists PrivateOfferDocuments for the given parent.

Parameters
Name Description
parent string

Required. Parent value for ListPrivateOfferDocumentsRequest.

pageToken string

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

pageSize int

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
PagedAsyncEnumerableListPrivateOfferDocumentsResponsePrivateOfferDocument

A pageable asynchronous sequence of PrivateOfferDocument resources.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/privateOffers/[PRIVATE_OFFER]";
// Make the request
PagedAsyncEnumerable<ListPrivateOfferDocumentsResponse, PrivateOfferDocument> response = commerceTransactionClient.ListPrivateOfferDocumentsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (PrivateOfferDocument 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 (ListPrivateOfferDocumentsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (PrivateOfferDocument 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<PrivateOfferDocument> 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 (PrivateOfferDocument 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;

ListPrivateOffers(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListPrivateOffersResponse, PrivateOffer> ListPrivateOffers(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists PrivateOffers for the given parent.

Parameters
Name Description
parent LocationName

Required. Parent value for ListPrivateOffersRequest

pageToken string

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

pageSize int

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
PagedEnumerableListPrivateOffersResponsePrivateOffer

A pageable sequence of PrivateOffer resources.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListPrivateOffersResponse, PrivateOffer> response = commerceTransactionClient.ListPrivateOffers(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (PrivateOffer 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 (ListPrivateOffersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (PrivateOffer 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<PrivateOffer> 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 (PrivateOffer 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;

ListPrivateOffers(ListPrivateOffersRequest, CallSettings)

public virtual PagedEnumerable<ListPrivateOffersResponse, PrivateOffer> ListPrivateOffers(ListPrivateOffersRequest request, CallSettings callSettings = null)

Lists PrivateOffers for the given parent.

Parameters
Name Description
request ListPrivateOffersRequest

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
PagedEnumerableListPrivateOffersResponsePrivateOffer

A pageable sequence of PrivateOffer resources.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
ListPrivateOffersRequest request = new ListPrivateOffersRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListPrivateOffersResponse, PrivateOffer> response = commerceTransactionClient.ListPrivateOffers(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (PrivateOffer 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 (ListPrivateOffersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (PrivateOffer 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<PrivateOffer> 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 (PrivateOffer 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;

ListPrivateOffers(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListPrivateOffersResponse, PrivateOffer> ListPrivateOffers(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists PrivateOffers for the given parent.

Parameters
Name Description
parent string

Required. Parent value for ListPrivateOffersRequest

pageToken string

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

pageSize int

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
PagedEnumerableListPrivateOffersResponsePrivateOffer

A pageable sequence of PrivateOffer resources.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListPrivateOffersResponse, PrivateOffer> response = commerceTransactionClient.ListPrivateOffers(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (PrivateOffer 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 (ListPrivateOffersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (PrivateOffer 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<PrivateOffer> 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 (PrivateOffer 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;

ListPrivateOffersAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListPrivateOffersResponse, PrivateOffer> ListPrivateOffersAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists PrivateOffers for the given parent.

Parameters
Name Description
parent LocationName

Required. Parent value for ListPrivateOffersRequest

pageToken string

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

pageSize int

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
PagedAsyncEnumerableListPrivateOffersResponsePrivateOffer

A pageable asynchronous sequence of PrivateOffer resources.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListPrivateOffersResponse, PrivateOffer> response = commerceTransactionClient.ListPrivateOffersAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (PrivateOffer 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 (ListPrivateOffersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (PrivateOffer 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<PrivateOffer> 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 (PrivateOffer 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;

ListPrivateOffersAsync(ListPrivateOffersRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListPrivateOffersResponse, PrivateOffer> ListPrivateOffersAsync(ListPrivateOffersRequest request, CallSettings callSettings = null)

Lists PrivateOffers for the given parent.

Parameters
Name Description
request ListPrivateOffersRequest

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
PagedAsyncEnumerableListPrivateOffersResponsePrivateOffer

A pageable asynchronous sequence of PrivateOffer resources.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
ListPrivateOffersRequest request = new ListPrivateOffersRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListPrivateOffersResponse, PrivateOffer> response = commerceTransactionClient.ListPrivateOffersAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await foreach (PrivateOffer 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 (ListPrivateOffersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (PrivateOffer 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<PrivateOffer> 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 (PrivateOffer 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;

ListPrivateOffersAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListPrivateOffersResponse, PrivateOffer> ListPrivateOffersAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists PrivateOffers for the given parent.

Parameters
Name Description
parent string

Required. Parent value for ListPrivateOffersRequest

pageToken string

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

pageSize int

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
PagedAsyncEnumerableListPrivateOffersResponsePrivateOffer

A pageable asynchronous sequence of PrivateOffer resources.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListPrivateOffersResponse, PrivateOffer> response = commerceTransactionClient.ListPrivateOffersAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (PrivateOffer 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 (ListPrivateOffersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (PrivateOffer 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<PrivateOffer> 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 (PrivateOffer 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;

ListServices(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListServicesResponse, Service> ListServices(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Services in a given project and location.

Parameters
Name Description
parent LocationName

Required. Parent value for ListServicesRequest

pageToken string

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

pageSize int

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
PagedEnumerableListServicesResponseService

A pageable sequence of Service resources.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListServicesResponse, Service> response = commerceTransactionClient.ListServices(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Service 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 (ListServicesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Service 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<Service> 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 (Service 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;

ListServices(ListServicesRequest, CallSettings)

public virtual PagedEnumerable<ListServicesResponse, Service> ListServices(ListServicesRequest request, CallSettings callSettings = null)

Lists Services in a given project and location.

Parameters
Name Description
request ListServicesRequest

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
PagedEnumerableListServicesResponseService

A pageable sequence of Service resources.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
ListServicesRequest request = new ListServicesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedEnumerable<ListServicesResponse, Service> response = commerceTransactionClient.ListServices(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (Service 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 (ListServicesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Service 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<Service> 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 (Service 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;

ListServices(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListServicesResponse, Service> ListServices(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Services in a given project and location.

Parameters
Name Description
parent string

Required. Parent value for ListServicesRequest

pageToken string

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

pageSize int

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
PagedEnumerableListServicesResponseService

A pageable sequence of Service resources.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListServicesResponse, Service> response = commerceTransactionClient.ListServices(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Service 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 (ListServicesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Service 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<Service> 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 (Service 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;

ListServicesAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListServicesResponse, Service> ListServicesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Services in a given project and location.

Parameters
Name Description
parent LocationName

Required. Parent value for ListServicesRequest

pageToken string

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

pageSize int

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
PagedAsyncEnumerableListServicesResponseService

A pageable asynchronous sequence of Service resources.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListServicesResponse, Service> response = commerceTransactionClient.ListServicesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (Service 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 (ListServicesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Service 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<Service> 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 (Service 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;

ListServicesAsync(ListServicesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListServicesResponse, Service> ListServicesAsync(ListServicesRequest request, CallSettings callSettings = null)

Lists Services in a given project and location.

Parameters
Name Description
request ListServicesRequest

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
PagedAsyncEnumerableListServicesResponseService

A pageable asynchronous sequence of Service resources.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
ListServicesRequest request = new ListServicesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedAsyncEnumerable<ListServicesResponse, Service> response = commerceTransactionClient.ListServicesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await foreach (Service 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 (ListServicesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Service 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<Service> 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 (Service 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;

ListServicesAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListServicesResponse, Service> ListServicesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Services in a given project and location.

Parameters
Name Description
parent string

Required. Parent value for ListServicesRequest

pageToken string

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

pageSize int

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
PagedAsyncEnumerableListServicesResponseService

A pageable asynchronous sequence of Service resources.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListServicesResponse, Service> response = commerceTransactionClient.ListServicesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (Service 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 (ListServicesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Service 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<Service> 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 (Service 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;

ListSkuGroups(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListSkuGroupsResponse, SkuGroup> ListSkuGroups(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists SkuGroups for the given parent.

Parameters
Name Description
parent LocationName

Required. Parent value for ListSkuGroupsRequest

pageToken string

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

pageSize int

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
PagedEnumerableListSkuGroupsResponseSkuGroup

A pageable sequence of SkuGroup resources.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListSkuGroupsResponse, SkuGroup> response = commerceTransactionClient.ListSkuGroups(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (SkuGroup 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 (ListSkuGroupsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (SkuGroup 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<SkuGroup> 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 (SkuGroup 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;

ListSkuGroups(ListSkuGroupsRequest, CallSettings)

public virtual PagedEnumerable<ListSkuGroupsResponse, SkuGroup> ListSkuGroups(ListSkuGroupsRequest request, CallSettings callSettings = null)

Lists SkuGroups for the given parent.

Parameters
Name Description
request ListSkuGroupsRequest

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
PagedEnumerableListSkuGroupsResponseSkuGroup

A pageable sequence of SkuGroup resources.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
ListSkuGroupsRequest request = new ListSkuGroupsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedEnumerable<ListSkuGroupsResponse, SkuGroup> response = commerceTransactionClient.ListSkuGroups(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (SkuGroup 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 (ListSkuGroupsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (SkuGroup 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<SkuGroup> 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 (SkuGroup 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;

ListSkuGroups(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListSkuGroupsResponse, SkuGroup> ListSkuGroups(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists SkuGroups for the given parent.

Parameters
Name Description
parent string

Required. Parent value for ListSkuGroupsRequest

pageToken string

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

pageSize int

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
PagedEnumerableListSkuGroupsResponseSkuGroup

A pageable sequence of SkuGroup resources.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListSkuGroupsResponse, SkuGroup> response = commerceTransactionClient.ListSkuGroups(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (SkuGroup 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 (ListSkuGroupsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (SkuGroup 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<SkuGroup> 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 (SkuGroup 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;

ListSkuGroupsAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListSkuGroupsResponse, SkuGroup> ListSkuGroupsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists SkuGroups for the given parent.

Parameters
Name Description
parent LocationName

Required. Parent value for ListSkuGroupsRequest

pageToken string

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

pageSize int

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
PagedAsyncEnumerableListSkuGroupsResponseSkuGroup

A pageable asynchronous sequence of SkuGroup resources.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListSkuGroupsResponse, SkuGroup> response = commerceTransactionClient.ListSkuGroupsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (SkuGroup 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 (ListSkuGroupsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (SkuGroup 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<SkuGroup> 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 (SkuGroup 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;

ListSkuGroupsAsync(ListSkuGroupsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListSkuGroupsResponse, SkuGroup> ListSkuGroupsAsync(ListSkuGroupsRequest request, CallSettings callSettings = null)

Lists SkuGroups for the given parent.

Parameters
Name Description
request ListSkuGroupsRequest

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
PagedAsyncEnumerableListSkuGroupsResponseSkuGroup

A pageable asynchronous sequence of SkuGroup resources.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
ListSkuGroupsRequest request = new ListSkuGroupsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedAsyncEnumerable<ListSkuGroupsResponse, SkuGroup> response = commerceTransactionClient.ListSkuGroupsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await foreach (SkuGroup 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 (ListSkuGroupsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (SkuGroup 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<SkuGroup> 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 (SkuGroup 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;

ListSkuGroupsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListSkuGroupsResponse, SkuGroup> ListSkuGroupsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists SkuGroups for the given parent.

Parameters
Name Description
parent string

Required. Parent value for ListSkuGroupsRequest

pageToken string

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

pageSize int

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
PagedAsyncEnumerableListSkuGroupsResponseSkuGroup

A pageable asynchronous sequence of SkuGroup resources.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListSkuGroupsResponse, SkuGroup> response = commerceTransactionClient.ListSkuGroupsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (SkuGroup 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 (ListSkuGroupsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (SkuGroup 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<SkuGroup> 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 (SkuGroup 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;

ListSkus(ListSkusRequest, CallSettings)

public virtual PagedEnumerable<ListSkusResponse, Sku> ListSkus(ListSkusRequest request, CallSettings callSettings = null)

Lists Skus for the given parent.

Parameters
Name Description
request ListSkusRequest

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
PagedEnumerableListSkusResponseSku

A pageable sequence of Sku resources.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
ListSkusRequest request = new ListSkusRequest
{
    ParentAsServiceName = ServiceName.FromProjectLocationService("[PROJECT]", "[LOCATION]", "[SERVICE]"),
};
// Make the request
PagedEnumerable<ListSkusResponse, Sku> response = commerceTransactionClient.ListSkus(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (Sku 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 (ListSkusResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Sku 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<Sku> 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 (Sku 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;

ListSkus(ServiceName, string, int?, CallSettings)

public virtual PagedEnumerable<ListSkusResponse, Sku> ListSkus(ServiceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Skus for the given parent.

Parameters
Name Description
parent ServiceName

Required. Parent value for ListSkusRequest

pageToken string

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

pageSize int

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
PagedEnumerableListSkusResponseSku

A pageable sequence of Sku resources.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
ServiceName parent = ServiceName.FromProjectLocationService("[PROJECT]", "[LOCATION]", "[SERVICE]");
// Make the request
PagedEnumerable<ListSkusResponse, Sku> response = commerceTransactionClient.ListSkus(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Sku 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 (ListSkusResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Sku 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<Sku> 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 (Sku 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;

ListSkus(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListSkusResponse, Sku> ListSkus(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Skus for the given parent.

Parameters
Name Description
parent string

Required. Parent value for ListSkusRequest

pageToken string

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

pageSize int

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
PagedEnumerableListSkusResponseSku

A pageable sequence of Sku resources.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/services/[SERVICE]";
// Make the request
PagedEnumerable<ListSkusResponse, Sku> response = commerceTransactionClient.ListSkus(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Sku 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 (ListSkusResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Sku 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<Sku> 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 (Sku 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;

ListSkusAsync(ListSkusRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListSkusResponse, Sku> ListSkusAsync(ListSkusRequest request, CallSettings callSettings = null)

Lists Skus for the given parent.

Parameters
Name Description
request ListSkusRequest

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
PagedAsyncEnumerableListSkusResponseSku

A pageable asynchronous sequence of Sku resources.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
ListSkusRequest request = new ListSkusRequest
{
    ParentAsServiceName = ServiceName.FromProjectLocationService("[PROJECT]", "[LOCATION]", "[SERVICE]"),
};
// Make the request
PagedAsyncEnumerable<ListSkusResponse, Sku> response = commerceTransactionClient.ListSkusAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await foreach (Sku 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 (ListSkusResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Sku 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<Sku> 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 (Sku 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;

ListSkusAsync(ServiceName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListSkusResponse, Sku> ListSkusAsync(ServiceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Skus for the given parent.

Parameters
Name Description
parent ServiceName

Required. Parent value for ListSkusRequest

pageToken string

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

pageSize int

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
PagedAsyncEnumerableListSkusResponseSku

A pageable asynchronous sequence of Sku resources.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
ServiceName parent = ServiceName.FromProjectLocationService("[PROJECT]", "[LOCATION]", "[SERVICE]");
// Make the request
PagedAsyncEnumerable<ListSkusResponse, Sku> response = commerceTransactionClient.ListSkusAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (Sku 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 (ListSkusResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Sku 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<Sku> 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 (Sku 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;

ListSkusAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListSkusResponse, Sku> ListSkusAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Skus for the given parent.

Parameters
Name Description
parent string

Required. Parent value for ListSkusRequest

pageToken string

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

pageSize int

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
PagedAsyncEnumerableListSkusResponseSku

A pageable asynchronous sequence of Sku resources.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/services/[SERVICE]";
// Make the request
PagedAsyncEnumerable<ListSkusResponse, Sku> response = commerceTransactionClient.ListSkusAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (Sku 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 (ListSkusResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Sku 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<Sku> 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 (Sku 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;

ListStandardOffers(ListStandardOffersRequest, CallSettings)

public virtual PagedEnumerable<ListStandardOffersResponse, StandardOffer> ListStandardOffers(ListStandardOffersRequest request, CallSettings callSettings = null)

Lists StandardOffers for the given parent.

Parameters
Name Description
request ListStandardOffersRequest

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
PagedEnumerableListStandardOffersResponseStandardOffer

A pageable sequence of StandardOffer resources.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
ListStandardOffersRequest request = new ListStandardOffersRequest
{
    ParentAsServiceName = ServiceName.FromProjectLocationService("[PROJECT]", "[LOCATION]", "[SERVICE]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListStandardOffersResponse, StandardOffer> response = commerceTransactionClient.ListStandardOffers(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (StandardOffer 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 (ListStandardOffersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (StandardOffer 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<StandardOffer> 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 (StandardOffer 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;

ListStandardOffers(ServiceName, string, int?, CallSettings)

public virtual PagedEnumerable<ListStandardOffersResponse, StandardOffer> ListStandardOffers(ServiceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists StandardOffers for the given parent.

Parameters
Name Description
parent ServiceName

Required. Parent value for ListStandardOffersRequest

pageToken string

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

pageSize int

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
PagedEnumerableListStandardOffersResponseStandardOffer

A pageable sequence of StandardOffer resources.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
ServiceName parent = ServiceName.FromProjectLocationService("[PROJECT]", "[LOCATION]", "[SERVICE]");
// Make the request
PagedEnumerable<ListStandardOffersResponse, StandardOffer> response = commerceTransactionClient.ListStandardOffers(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (StandardOffer 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 (ListStandardOffersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (StandardOffer 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<StandardOffer> 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 (StandardOffer 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;

ListStandardOffers(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListStandardOffersResponse, StandardOffer> ListStandardOffers(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists StandardOffers for the given parent.

Parameters
Name Description
parent string

Required. Parent value for ListStandardOffersRequest

pageToken string

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

pageSize int

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
PagedEnumerableListStandardOffersResponseStandardOffer

A pageable sequence of StandardOffer resources.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/services/[SERVICE]";
// Make the request
PagedEnumerable<ListStandardOffersResponse, StandardOffer> response = commerceTransactionClient.ListStandardOffers(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (StandardOffer 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 (ListStandardOffersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (StandardOffer 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<StandardOffer> 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 (StandardOffer 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;

ListStandardOffersAsync(ListStandardOffersRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListStandardOffersResponse, StandardOffer> ListStandardOffersAsync(ListStandardOffersRequest request, CallSettings callSettings = null)

Lists StandardOffers for the given parent.

Parameters
Name Description
request ListStandardOffersRequest

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
PagedAsyncEnumerableListStandardOffersResponseStandardOffer

A pageable asynchronous sequence of StandardOffer resources.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
ListStandardOffersRequest request = new ListStandardOffersRequest
{
    ParentAsServiceName = ServiceName.FromProjectLocationService("[PROJECT]", "[LOCATION]", "[SERVICE]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListStandardOffersResponse, StandardOffer> response = commerceTransactionClient.ListStandardOffersAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await foreach (StandardOffer 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 (ListStandardOffersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (StandardOffer 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<StandardOffer> 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 (StandardOffer 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;

ListStandardOffersAsync(ServiceName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListStandardOffersResponse, StandardOffer> ListStandardOffersAsync(ServiceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists StandardOffers for the given parent.

Parameters
Name Description
parent ServiceName

Required. Parent value for ListStandardOffersRequest

pageToken string

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

pageSize int

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
PagedAsyncEnumerableListStandardOffersResponseStandardOffer

A pageable asynchronous sequence of StandardOffer resources.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
ServiceName parent = ServiceName.FromProjectLocationService("[PROJECT]", "[LOCATION]", "[SERVICE]");
// Make the request
PagedAsyncEnumerable<ListStandardOffersResponse, StandardOffer> response = commerceTransactionClient.ListStandardOffersAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (StandardOffer 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 (ListStandardOffersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (StandardOffer 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<StandardOffer> 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 (StandardOffer 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;

ListStandardOffersAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListStandardOffersResponse, StandardOffer> ListStandardOffersAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists StandardOffers for the given parent.

Parameters
Name Description
parent string

Required. Parent value for ListStandardOffersRequest

pageToken string

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

pageSize int

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
PagedAsyncEnumerableListStandardOffersResponseStandardOffer

A pageable asynchronous sequence of StandardOffer resources.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/services/[SERVICE]";
// Make the request
PagedAsyncEnumerable<ListStandardOffersResponse, StandardOffer> response = commerceTransactionClient.ListStandardOffersAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (StandardOffer 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 (ListStandardOffersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (StandardOffer 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<StandardOffer> 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 (StandardOffer 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;

PublishPrivateOffer(PrivateOfferName, CallSettings)

public virtual PrivateOffer PublishPrivateOffer(PrivateOfferName name, CallSettings callSettings = null)

Publishes the target PrivateOffer.

Parameters
Name Description
name PrivateOfferName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PrivateOffer

The RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
PrivateOfferName name = PrivateOfferName.FromProjectLocationPrivateOffer("[PROJECT]", "[LOCATION]", "[PRIVATE_OFFER]");
// Make the request
PrivateOffer response = commerceTransactionClient.PublishPrivateOffer(name);

PublishPrivateOffer(PublishPrivateOfferRequest, CallSettings)

public virtual PrivateOffer PublishPrivateOffer(PublishPrivateOfferRequest request, CallSettings callSettings = null)

Publishes the target PrivateOffer.

Parameters
Name Description
request PublishPrivateOfferRequest

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
PrivateOffer

The RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
PublishPrivateOfferRequest request = new PublishPrivateOfferRequest
{
    PrivateOfferName = PrivateOfferName.FromProjectLocationPrivateOffer("[PROJECT]", "[LOCATION]", "[PRIVATE_OFFER]"),
    ValidateOnly = false,
};
// Make the request
PrivateOffer response = commerceTransactionClient.PublishPrivateOffer(request);

PublishPrivateOffer(string, CallSettings)

public virtual PrivateOffer PublishPrivateOffer(string name, CallSettings callSettings = null)

Publishes the target PrivateOffer.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PrivateOffer

The RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateOffers/[PRIVATE_OFFER]";
// Make the request
PrivateOffer response = commerceTransactionClient.PublishPrivateOffer(name);

PublishPrivateOfferAsync(PrivateOfferName, CallSettings)

public virtual Task<PrivateOffer> PublishPrivateOfferAsync(PrivateOfferName name, CallSettings callSettings = null)

Publishes the target PrivateOffer.

Parameters
Name Description
name PrivateOfferName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPrivateOffer

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
PrivateOfferName name = PrivateOfferName.FromProjectLocationPrivateOffer("[PROJECT]", "[LOCATION]", "[PRIVATE_OFFER]");
// Make the request
PrivateOffer response = await commerceTransactionClient.PublishPrivateOfferAsync(name);

PublishPrivateOfferAsync(PrivateOfferName, CancellationToken)

public virtual Task<PrivateOffer> PublishPrivateOfferAsync(PrivateOfferName name, CancellationToken cancellationToken)

Publishes the target PrivateOffer.

Parameters
Name Description
name PrivateOfferName

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPrivateOffer

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
PrivateOfferName name = PrivateOfferName.FromProjectLocationPrivateOffer("[PROJECT]", "[LOCATION]", "[PRIVATE_OFFER]");
// Make the request
PrivateOffer response = await commerceTransactionClient.PublishPrivateOfferAsync(name);

PublishPrivateOfferAsync(PublishPrivateOfferRequest, CallSettings)

public virtual Task<PrivateOffer> PublishPrivateOfferAsync(PublishPrivateOfferRequest request, CallSettings callSettings = null)

Publishes the target PrivateOffer.

Parameters
Name Description
request PublishPrivateOfferRequest

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
TaskPrivateOffer

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
PublishPrivateOfferRequest request = new PublishPrivateOfferRequest
{
    PrivateOfferName = PrivateOfferName.FromProjectLocationPrivateOffer("[PROJECT]", "[LOCATION]", "[PRIVATE_OFFER]"),
    ValidateOnly = false,
};
// Make the request
PrivateOffer response = await commerceTransactionClient.PublishPrivateOfferAsync(request);

PublishPrivateOfferAsync(PublishPrivateOfferRequest, CancellationToken)

public virtual Task<PrivateOffer> PublishPrivateOfferAsync(PublishPrivateOfferRequest request, CancellationToken cancellationToken)

Publishes the target PrivateOffer.

Parameters
Name Description
request PublishPrivateOfferRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPrivateOffer

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
PublishPrivateOfferRequest request = new PublishPrivateOfferRequest
{
    PrivateOfferName = PrivateOfferName.FromProjectLocationPrivateOffer("[PROJECT]", "[LOCATION]", "[PRIVATE_OFFER]"),
    ValidateOnly = false,
};
// Make the request
PrivateOffer response = await commerceTransactionClient.PublishPrivateOfferAsync(request);

PublishPrivateOfferAsync(string, CallSettings)

public virtual Task<PrivateOffer> PublishPrivateOfferAsync(string name, CallSettings callSettings = null)

Publishes the target PrivateOffer.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPrivateOffer

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateOffers/[PRIVATE_OFFER]";
// Make the request
PrivateOffer response = await commerceTransactionClient.PublishPrivateOfferAsync(name);

PublishPrivateOfferAsync(string, CancellationToken)

public virtual Task<PrivateOffer> PublishPrivateOfferAsync(string name, CancellationToken cancellationToken)

Publishes the target PrivateOffer.

Parameters
Name Description
name string

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPrivateOffer

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateOffers/[PRIVATE_OFFER]";
// Make the request
PrivateOffer response = await commerceTransactionClient.PublishPrivateOfferAsync(name);

ResolveAmendmentTarget(LocationName, BillingAccountName, StandardOfferName, CallSettings)

public virtual ResolveAmendmentTargetResponse ResolveAmendmentTarget(LocationName parent, BillingAccountName targetBillingAccount, StandardOfferName baseStandardOffer, CallSettings callSettings = null)

Resolves the existing offer that must be amended when creating a new PrivateOffer. Use this method to determine the correct amendment target before creating or publishing an offer.

Parameters
Name Description
parent LocationName

Required. Parent value for ResolveAmendmentTargetRequest

targetBillingAccount BillingAccountName

Required. The customer's billing account targeted by the offer. This is the billing account for which the new private offer will be created on. Format: billingAccounts/{billing_account}.

baseStandardOffer StandardOfferName

Required. The base standard offer that the private offer will be based on. Format: projects/{project}/locations/{location}/services/{service}/standardOffers/{standard_offer}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ResolveAmendmentTargetResponse

The RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
BillingAccountName targetBillingAccount = BillingAccountName.FromBillingAccount("[BILLING_ACCOUNT]");
StandardOfferName baseStandardOffer = StandardOfferName.FromProjectLocationServiceStandardOffer("[PROJECT]", "[LOCATION]", "[SERVICE]", "[STANDARD_OFFER]");
// Make the request
ResolveAmendmentTargetResponse response = commerceTransactionClient.ResolveAmendmentTarget(parent, targetBillingAccount, baseStandardOffer);

ResolveAmendmentTarget(ResolveAmendmentTargetRequest, CallSettings)

public virtual ResolveAmendmentTargetResponse ResolveAmendmentTarget(ResolveAmendmentTargetRequest request, CallSettings callSettings = null)

Resolves the existing offer that must be amended when creating a new PrivateOffer. Use this method to determine the correct amendment target before creating or publishing an offer.

Parameters
Name Description
request ResolveAmendmentTargetRequest

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
ResolveAmendmentTargetResponse

The RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
ResolveAmendmentTargetRequest request = new ResolveAmendmentTargetRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    TargetBillingAccountAsBillingAccountName = BillingAccountName.FromBillingAccount("[BILLING_ACCOUNT]"),
    BaseStandardOfferAsStandardOfferName = StandardOfferName.FromProjectLocationServiceStandardOffer("[PROJECT]", "[LOCATION]", "[SERVICE]", "[STANDARD_OFFER]"),
};
// Make the request
ResolveAmendmentTargetResponse response = commerceTransactionClient.ResolveAmendmentTarget(request);

ResolveAmendmentTarget(string, string, string, CallSettings)

public virtual ResolveAmendmentTargetResponse ResolveAmendmentTarget(string parent, string targetBillingAccount, string baseStandardOffer, CallSettings callSettings = null)

Resolves the existing offer that must be amended when creating a new PrivateOffer. Use this method to determine the correct amendment target before creating or publishing an offer.

Parameters
Name Description
parent string

Required. Parent value for ResolveAmendmentTargetRequest

targetBillingAccount string

Required. The customer's billing account targeted by the offer. This is the billing account for which the new private offer will be created on. Format: billingAccounts/{billing_account}.

baseStandardOffer string

Required. The base standard offer that the private offer will be based on. Format: projects/{project}/locations/{location}/services/{service}/standardOffers/{standard_offer}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ResolveAmendmentTargetResponse

The RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
string targetBillingAccount = "billingAccounts/[BILLING_ACCOUNT]";
string baseStandardOffer = "projects/[PROJECT]/locations/[LOCATION]/services/[SERVICE]/standardOffers/[STANDARD_OFFER]";
// Make the request
ResolveAmendmentTargetResponse response = commerceTransactionClient.ResolveAmendmentTarget(parent, targetBillingAccount, baseStandardOffer);

ResolveAmendmentTargetAsync(LocationName, BillingAccountName, StandardOfferName, CallSettings)

public virtual Task<ResolveAmendmentTargetResponse> ResolveAmendmentTargetAsync(LocationName parent, BillingAccountName targetBillingAccount, StandardOfferName baseStandardOffer, CallSettings callSettings = null)

Resolves the existing offer that must be amended when creating a new PrivateOffer. Use this method to determine the correct amendment target before creating or publishing an offer.

Parameters
Name Description
parent LocationName

Required. Parent value for ResolveAmendmentTargetRequest

targetBillingAccount BillingAccountName

Required. The customer's billing account targeted by the offer. This is the billing account for which the new private offer will be created on. Format: billingAccounts/{billing_account}.

baseStandardOffer StandardOfferName

Required. The base standard offer that the private offer will be based on. Format: projects/{project}/locations/{location}/services/{service}/standardOffers/{standard_offer}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskResolveAmendmentTargetResponse

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
BillingAccountName targetBillingAccount = BillingAccountName.FromBillingAccount("[BILLING_ACCOUNT]");
StandardOfferName baseStandardOffer = StandardOfferName.FromProjectLocationServiceStandardOffer("[PROJECT]", "[LOCATION]", "[SERVICE]", "[STANDARD_OFFER]");
// Make the request
ResolveAmendmentTargetResponse response = await commerceTransactionClient.ResolveAmendmentTargetAsync(parent, targetBillingAccount, baseStandardOffer);

ResolveAmendmentTargetAsync(LocationName, BillingAccountName, StandardOfferName, CancellationToken)

public virtual Task<ResolveAmendmentTargetResponse> ResolveAmendmentTargetAsync(LocationName parent, BillingAccountName targetBillingAccount, StandardOfferName baseStandardOffer, CancellationToken cancellationToken)

Resolves the existing offer that must be amended when creating a new PrivateOffer. Use this method to determine the correct amendment target before creating or publishing an offer.

Parameters
Name Description
parent LocationName

Required. Parent value for ResolveAmendmentTargetRequest

targetBillingAccount BillingAccountName

Required. The customer's billing account targeted by the offer. This is the billing account for which the new private offer will be created on. Format: billingAccounts/{billing_account}.

baseStandardOffer StandardOfferName

Required. The base standard offer that the private offer will be based on. Format: projects/{project}/locations/{location}/services/{service}/standardOffers/{standard_offer}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskResolveAmendmentTargetResponse

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
BillingAccountName targetBillingAccount = BillingAccountName.FromBillingAccount("[BILLING_ACCOUNT]");
StandardOfferName baseStandardOffer = StandardOfferName.FromProjectLocationServiceStandardOffer("[PROJECT]", "[LOCATION]", "[SERVICE]", "[STANDARD_OFFER]");
// Make the request
ResolveAmendmentTargetResponse response = await commerceTransactionClient.ResolveAmendmentTargetAsync(parent, targetBillingAccount, baseStandardOffer);

ResolveAmendmentTargetAsync(ResolveAmendmentTargetRequest, CallSettings)

public virtual Task<ResolveAmendmentTargetResponse> ResolveAmendmentTargetAsync(ResolveAmendmentTargetRequest request, CallSettings callSettings = null)

Resolves the existing offer that must be amended when creating a new PrivateOffer. Use this method to determine the correct amendment target before creating or publishing an offer.

Parameters
Name Description
request ResolveAmendmentTargetRequest

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
TaskResolveAmendmentTargetResponse

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
ResolveAmendmentTargetRequest request = new ResolveAmendmentTargetRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    TargetBillingAccountAsBillingAccountName = BillingAccountName.FromBillingAccount("[BILLING_ACCOUNT]"),
    BaseStandardOfferAsStandardOfferName = StandardOfferName.FromProjectLocationServiceStandardOffer("[PROJECT]", "[LOCATION]", "[SERVICE]", "[STANDARD_OFFER]"),
};
// Make the request
ResolveAmendmentTargetResponse response = await commerceTransactionClient.ResolveAmendmentTargetAsync(request);

ResolveAmendmentTargetAsync(ResolveAmendmentTargetRequest, CancellationToken)

public virtual Task<ResolveAmendmentTargetResponse> ResolveAmendmentTargetAsync(ResolveAmendmentTargetRequest request, CancellationToken cancellationToken)

Resolves the existing offer that must be amended when creating a new PrivateOffer. Use this method to determine the correct amendment target before creating or publishing an offer.

Parameters
Name Description
request ResolveAmendmentTargetRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskResolveAmendmentTargetResponse

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
ResolveAmendmentTargetRequest request = new ResolveAmendmentTargetRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    TargetBillingAccountAsBillingAccountName = BillingAccountName.FromBillingAccount("[BILLING_ACCOUNT]"),
    BaseStandardOfferAsStandardOfferName = StandardOfferName.FromProjectLocationServiceStandardOffer("[PROJECT]", "[LOCATION]", "[SERVICE]", "[STANDARD_OFFER]"),
};
// Make the request
ResolveAmendmentTargetResponse response = await commerceTransactionClient.ResolveAmendmentTargetAsync(request);

ResolveAmendmentTargetAsync(string, string, string, CallSettings)

public virtual Task<ResolveAmendmentTargetResponse> ResolveAmendmentTargetAsync(string parent, string targetBillingAccount, string baseStandardOffer, CallSettings callSettings = null)

Resolves the existing offer that must be amended when creating a new PrivateOffer. Use this method to determine the correct amendment target before creating or publishing an offer.

Parameters
Name Description
parent string

Required. Parent value for ResolveAmendmentTargetRequest

targetBillingAccount string

Required. The customer's billing account targeted by the offer. This is the billing account for which the new private offer will be created on. Format: billingAccounts/{billing_account}.

baseStandardOffer string

Required. The base standard offer that the private offer will be based on. Format: projects/{project}/locations/{location}/services/{service}/standardOffers/{standard_offer}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskResolveAmendmentTargetResponse

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
string targetBillingAccount = "billingAccounts/[BILLING_ACCOUNT]";
string baseStandardOffer = "projects/[PROJECT]/locations/[LOCATION]/services/[SERVICE]/standardOffers/[STANDARD_OFFER]";
// Make the request
ResolveAmendmentTargetResponse response = await commerceTransactionClient.ResolveAmendmentTargetAsync(parent, targetBillingAccount, baseStandardOffer);

ResolveAmendmentTargetAsync(string, string, string, CancellationToken)

public virtual Task<ResolveAmendmentTargetResponse> ResolveAmendmentTargetAsync(string parent, string targetBillingAccount, string baseStandardOffer, CancellationToken cancellationToken)

Resolves the existing offer that must be amended when creating a new PrivateOffer. Use this method to determine the correct amendment target before creating or publishing an offer.

Parameters
Name Description
parent string

Required. Parent value for ResolveAmendmentTargetRequest

targetBillingAccount string

Required. The customer's billing account targeted by the offer. This is the billing account for which the new private offer will be created on. Format: billingAccounts/{billing_account}.

baseStandardOffer string

Required. The base standard offer that the private offer will be based on. Format: projects/{project}/locations/{location}/services/{service}/standardOffers/{standard_offer}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskResolveAmendmentTargetResponse

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
string targetBillingAccount = "billingAccounts/[BILLING_ACCOUNT]";
string baseStandardOffer = "projects/[PROJECT]/locations/[LOCATION]/services/[SERVICE]/standardOffers/[STANDARD_OFFER]";
// Make the request
ResolveAmendmentTargetResponse response = await commerceTransactionClient.ResolveAmendmentTargetAsync(parent, targetBillingAccount, baseStandardOffer);

ShutdownDefaultChannelsAsync()

public static Task ShutdownDefaultChannelsAsync()

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

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.

UpdatePrivateOffer(PrivateOffer, FieldMask, CallSettings)

public virtual PrivateOffer UpdatePrivateOffer(PrivateOffer privateOffer, FieldMask updateMask, CallSettings callSettings = null)

Updates the target PrivateOffer.

Parameters
Name Description
privateOffer PrivateOffer

Required. The resource being updated

updateMask FieldMask

Optional. The list of fields to update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. The special value "*" means full replacement. If unspecified, all fields present in the request will be overwritten.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PrivateOffer

The RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
PrivateOffer privateOffer = new PrivateOffer();
FieldMask updateMask = new FieldMask();
// Make the request
PrivateOffer response = commerceTransactionClient.UpdatePrivateOffer(privateOffer, updateMask);

UpdatePrivateOffer(UpdatePrivateOfferRequest, CallSettings)

public virtual PrivateOffer UpdatePrivateOffer(UpdatePrivateOfferRequest request, CallSettings callSettings = null)

Updates the target PrivateOffer.

Parameters
Name Description
request UpdatePrivateOfferRequest

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
PrivateOffer

The RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
UpdatePrivateOfferRequest request = new UpdatePrivateOfferRequest
{
    UpdateMask = new FieldMask(),
    PrivateOffer = new PrivateOffer(),
};
// Make the request
PrivateOffer response = commerceTransactionClient.UpdatePrivateOffer(request);

UpdatePrivateOfferAsync(PrivateOffer, FieldMask, CallSettings)

public virtual Task<PrivateOffer> UpdatePrivateOfferAsync(PrivateOffer privateOffer, FieldMask updateMask, CallSettings callSettings = null)

Updates the target PrivateOffer.

Parameters
Name Description
privateOffer PrivateOffer

Required. The resource being updated

updateMask FieldMask

Optional. The list of fields to update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. The special value "*" means full replacement. If unspecified, all fields present in the request will be overwritten.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPrivateOffer

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
PrivateOffer privateOffer = new PrivateOffer();
FieldMask updateMask = new FieldMask();
// Make the request
PrivateOffer response = await commerceTransactionClient.UpdatePrivateOfferAsync(privateOffer, updateMask);

UpdatePrivateOfferAsync(PrivateOffer, FieldMask, CancellationToken)

public virtual Task<PrivateOffer> UpdatePrivateOfferAsync(PrivateOffer privateOffer, FieldMask updateMask, CancellationToken cancellationToken)

Updates the target PrivateOffer.

Parameters
Name Description
privateOffer PrivateOffer

Required. The resource being updated

updateMask FieldMask

Optional. The list of fields to update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. The special value "*" means full replacement. If unspecified, all fields present in the request will be overwritten.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPrivateOffer

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
PrivateOffer privateOffer = new PrivateOffer();
FieldMask updateMask = new FieldMask();
// Make the request
PrivateOffer response = await commerceTransactionClient.UpdatePrivateOfferAsync(privateOffer, updateMask);

UpdatePrivateOfferAsync(UpdatePrivateOfferRequest, CallSettings)

public virtual Task<PrivateOffer> UpdatePrivateOfferAsync(UpdatePrivateOfferRequest request, CallSettings callSettings = null)

Updates the target PrivateOffer.

Parameters
Name Description
request UpdatePrivateOfferRequest

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
TaskPrivateOffer

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
UpdatePrivateOfferRequest request = new UpdatePrivateOfferRequest
{
    UpdateMask = new FieldMask(),
    PrivateOffer = new PrivateOffer(),
};
// Make the request
PrivateOffer response = await commerceTransactionClient.UpdatePrivateOfferAsync(request);

UpdatePrivateOfferAsync(UpdatePrivateOfferRequest, CancellationToken)

public virtual Task<PrivateOffer> UpdatePrivateOfferAsync(UpdatePrivateOfferRequest request, CancellationToken cancellationToken)

Updates the target PrivateOffer.

Parameters
Name Description
request UpdatePrivateOfferRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPrivateOffer

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
UpdatePrivateOfferRequest request = new UpdatePrivateOfferRequest
{
    UpdateMask = new FieldMask(),
    PrivateOffer = new PrivateOffer(),
};
// Make the request
PrivateOffer response = await commerceTransactionClient.UpdatePrivateOfferAsync(request);

UpdatePrivateOfferDocument(PrivateOfferDocument, FieldMask, CallSettings)

public virtual PrivateOfferDocument UpdatePrivateOfferDocument(PrivateOfferDocument privateOfferDocument, FieldMask updateMask, CallSettings callSettings = null)

Updates the target PrivateOfferDocument.

Parameters
Name Description
privateOfferDocument PrivateOfferDocument

Required. The resource being updated.

updateMask FieldMask

Optional. The list of fields to update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. The special value "*" means full replacement. If unspecified, all fields present in the request will be overwritten.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PrivateOfferDocument

The RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
PrivateOfferDocument privateOfferDocument = new PrivateOfferDocument();
FieldMask updateMask = new FieldMask();
// Make the request
PrivateOfferDocument response = commerceTransactionClient.UpdatePrivateOfferDocument(privateOfferDocument, updateMask);

UpdatePrivateOfferDocument(UpdatePrivateOfferDocumentRequest, CallSettings)

public virtual PrivateOfferDocument UpdatePrivateOfferDocument(UpdatePrivateOfferDocumentRequest request, CallSettings callSettings = null)

Updates the target PrivateOfferDocument.

Parameters
Name Description
request UpdatePrivateOfferDocumentRequest

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
PrivateOfferDocument

The RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = CommerceTransactionClient.Create();
// Initialize request argument(s)
UpdatePrivateOfferDocumentRequest request = new UpdatePrivateOfferDocumentRequest
{
    PrivateOfferDocument = new PrivateOfferDocument(),
    UpdateMask = new FieldMask(),
};
// Make the request
PrivateOfferDocument response = commerceTransactionClient.UpdatePrivateOfferDocument(request);

UpdatePrivateOfferDocumentAsync(PrivateOfferDocument, FieldMask, CallSettings)

public virtual Task<PrivateOfferDocument> UpdatePrivateOfferDocumentAsync(PrivateOfferDocument privateOfferDocument, FieldMask updateMask, CallSettings callSettings = null)

Updates the target PrivateOfferDocument.

Parameters
Name Description
privateOfferDocument PrivateOfferDocument

Required. The resource being updated.

updateMask FieldMask

Optional. The list of fields to update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. The special value "*" means full replacement. If unspecified, all fields present in the request will be overwritten.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPrivateOfferDocument

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
PrivateOfferDocument privateOfferDocument = new PrivateOfferDocument();
FieldMask updateMask = new FieldMask();
// Make the request
PrivateOfferDocument response = await commerceTransactionClient.UpdatePrivateOfferDocumentAsync(privateOfferDocument, updateMask);

UpdatePrivateOfferDocumentAsync(PrivateOfferDocument, FieldMask, CancellationToken)

public virtual Task<PrivateOfferDocument> UpdatePrivateOfferDocumentAsync(PrivateOfferDocument privateOfferDocument, FieldMask updateMask, CancellationToken cancellationToken)

Updates the target PrivateOfferDocument.

Parameters
Name Description
privateOfferDocument PrivateOfferDocument

Required. The resource being updated.

updateMask FieldMask

Optional. The list of fields to update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. The special value "*" means full replacement. If unspecified, all fields present in the request will be overwritten.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPrivateOfferDocument

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
PrivateOfferDocument privateOfferDocument = new PrivateOfferDocument();
FieldMask updateMask = new FieldMask();
// Make the request
PrivateOfferDocument response = await commerceTransactionClient.UpdatePrivateOfferDocumentAsync(privateOfferDocument, updateMask);

UpdatePrivateOfferDocumentAsync(UpdatePrivateOfferDocumentRequest, CallSettings)

public virtual Task<PrivateOfferDocument> UpdatePrivateOfferDocumentAsync(UpdatePrivateOfferDocumentRequest request, CallSettings callSettings = null)

Updates the target PrivateOfferDocument.

Parameters
Name Description
request UpdatePrivateOfferDocumentRequest

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
TaskPrivateOfferDocument

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
UpdatePrivateOfferDocumentRequest request = new UpdatePrivateOfferDocumentRequest
{
    PrivateOfferDocument = new PrivateOfferDocument(),
    UpdateMask = new FieldMask(),
};
// Make the request
PrivateOfferDocument response = await commerceTransactionClient.UpdatePrivateOfferDocumentAsync(request);

UpdatePrivateOfferDocumentAsync(UpdatePrivateOfferDocumentRequest, CancellationToken)

public virtual Task<PrivateOfferDocument> UpdatePrivateOfferDocumentAsync(UpdatePrivateOfferDocumentRequest request, CancellationToken cancellationToken)

Updates the target PrivateOfferDocument.

Parameters
Name Description
request UpdatePrivateOfferDocumentRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPrivateOfferDocument

A Task containing the RPC response.

Example
// Create client
CommerceTransactionClient commerceTransactionClient = await CommerceTransactionClient.CreateAsync();
// Initialize request argument(s)
UpdatePrivateOfferDocumentRequest request = new UpdatePrivateOfferDocumentRequest
{
    PrivateOfferDocument = new PrivateOfferDocument(),
    UpdateMask = new FieldMask(),
};
// Make the request
PrivateOfferDocument response = await commerceTransactionClient.UpdatePrivateOfferDocumentAsync(request);