Class AccountTaxServiceClient
AccountTaxService client wrapper, for convenient use.
Namespace: Google.Shopping.Merchant.Accounts.V1Beta
Assembly: Google.Shopping.Merchant.Accounts.V1Beta.dll
Syntax
public abstract class AccountTaxServiceClient
Remarks
Manages account level tax setting data.
This API defines the following resource model:
- [AccountTax][google.shopping.merchant.accounts.v1main.AccountTax]
Properties
DefaultEndpoint
The default endpoint for the AccountTaxService service, which is a host of "merchantapi.googleapis.com" and a port of 443.
Declaration
public static string DefaultEndpoint { get; }
Property Value
Type | Description |
---|---|
string |
DefaultScopes
The default AccountTaxService scopes.
Declaration
public static IReadOnlyList<string> DefaultScopes { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<string> |
Remarks
The default AccountTaxService scopes are:
- https://www.googleapis.com/auth/content
GrpcClient
The underlying gRPC AccountTaxService client
Declaration
public virtual AccountTaxService.AccountTaxServiceClient GrpcClient { get; }
Property Value
Type | Description |
---|---|
AccountTaxService.AccountTaxServiceClient |
ServiceMetadata
The service metadata associated with this client type.
Declaration
public static ServiceMetadata ServiceMetadata { get; }
Property Value
Type | Description |
---|---|
ServiceMetadata |
Methods
Create()
Synchronously creates a AccountTaxServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use AccountTaxServiceClientBuilder.
Declaration
public static AccountTaxServiceClient Create()
Returns
Type | Description |
---|---|
AccountTaxServiceClient | The created AccountTaxServiceClient. |
CreateAsync(CancellationToken)
Asynchronously creates a AccountTaxServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use AccountTaxServiceClientBuilder.
Declaration
public static Task<AccountTaxServiceClient> CreateAsync(CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken | The CancellationToken to use while creating the client. |
Returns
Type | Description |
---|---|
Task<AccountTaxServiceClient> | The task representing the created AccountTaxServiceClient. |
GetAccountTax(AccountTaxName, CallSettings)
Returns the tax rules that match the conditions of GetAccountTaxRequest
Declaration
public virtual AccountTax GetAccountTax(AccountTaxName name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
AccountTaxName | name | Required. The name from which tax settings will be retrieved |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
AccountTax | The RPC response. |
Sample code
// Create client
AccountTaxServiceClient accountTaxServiceClient = AccountTaxServiceClient.Create();
// Initialize request argument(s)
AccountTaxName name = AccountTaxName.FromAccountTax("[ACCOUNT]", "[TAX]");
// Make the request
AccountTax response = accountTaxServiceClient.GetAccountTax(name);
GetAccountTax(GetAccountTaxRequest, CallSettings)
Returns the tax rules that match the conditions of GetAccountTaxRequest
Declaration
public virtual AccountTax GetAccountTax(GetAccountTaxRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetAccountTaxRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
AccountTax | The RPC response. |
Sample code
// Create client
AccountTaxServiceClient accountTaxServiceClient = AccountTaxServiceClient.Create();
// Initialize request argument(s)
GetAccountTaxRequest request = new GetAccountTaxRequest
{
AccountTaxName = AccountTaxName.FromAccountTax("[ACCOUNT]", "[TAX]"),
};
// Make the request
AccountTax response = accountTaxServiceClient.GetAccountTax(request);
GetAccountTax(string, CallSettings)
Returns the tax rules that match the conditions of GetAccountTaxRequest
Declaration
public virtual AccountTax GetAccountTax(string name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name from which tax settings will be retrieved |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
AccountTax | The RPC response. |
Sample code
// Create client
AccountTaxServiceClient accountTaxServiceClient = AccountTaxServiceClient.Create();
// Initialize request argument(s)
string name = "accounts/[ACCOUNT]/accounttax/[TAX]";
// Make the request
AccountTax response = accountTaxServiceClient.GetAccountTax(name);
GetAccountTaxAsync(AccountTaxName, CallSettings)
Returns the tax rules that match the conditions of GetAccountTaxRequest
Declaration
public virtual Task<AccountTax> GetAccountTaxAsync(AccountTaxName name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
AccountTaxName | name | Required. The name from which tax settings will be retrieved |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<AccountTax> | A Task containing the RPC response. |
Sample code
// Create client
AccountTaxServiceClient accountTaxServiceClient = await AccountTaxServiceClient.CreateAsync();
// Initialize request argument(s)
AccountTaxName name = AccountTaxName.FromAccountTax("[ACCOUNT]", "[TAX]");
// Make the request
AccountTax response = await accountTaxServiceClient.GetAccountTaxAsync(name);
GetAccountTaxAsync(AccountTaxName, CancellationToken)
Returns the tax rules that match the conditions of GetAccountTaxRequest
Declaration
public virtual Task<AccountTax> GetAccountTaxAsync(AccountTaxName name, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
AccountTaxName | name | Required. The name from which tax settings will be retrieved |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<AccountTax> | A Task containing the RPC response. |
Sample code
// Create client
AccountTaxServiceClient accountTaxServiceClient = await AccountTaxServiceClient.CreateAsync();
// Initialize request argument(s)
AccountTaxName name = AccountTaxName.FromAccountTax("[ACCOUNT]", "[TAX]");
// Make the request
AccountTax response = await accountTaxServiceClient.GetAccountTaxAsync(name);
GetAccountTaxAsync(GetAccountTaxRequest, CallSettings)
Returns the tax rules that match the conditions of GetAccountTaxRequest
Declaration
public virtual Task<AccountTax> GetAccountTaxAsync(GetAccountTaxRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetAccountTaxRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<AccountTax> | A Task containing the RPC response. |
Sample code
// Create client
AccountTaxServiceClient accountTaxServiceClient = await AccountTaxServiceClient.CreateAsync();
// Initialize request argument(s)
GetAccountTaxRequest request = new GetAccountTaxRequest
{
AccountTaxName = AccountTaxName.FromAccountTax("[ACCOUNT]", "[TAX]"),
};
// Make the request
AccountTax response = await accountTaxServiceClient.GetAccountTaxAsync(request);
GetAccountTaxAsync(GetAccountTaxRequest, CancellationToken)
Returns the tax rules that match the conditions of GetAccountTaxRequest
Declaration
public virtual Task<AccountTax> GetAccountTaxAsync(GetAccountTaxRequest request, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
GetAccountTaxRequest | request | The request object containing all of the parameters for the API call. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<AccountTax> | A Task containing the RPC response. |
Sample code
// Create client
AccountTaxServiceClient accountTaxServiceClient = await AccountTaxServiceClient.CreateAsync();
// Initialize request argument(s)
GetAccountTaxRequest request = new GetAccountTaxRequest
{
AccountTaxName = AccountTaxName.FromAccountTax("[ACCOUNT]", "[TAX]"),
};
// Make the request
AccountTax response = await accountTaxServiceClient.GetAccountTaxAsync(request);
GetAccountTaxAsync(string, CallSettings)
Returns the tax rules that match the conditions of GetAccountTaxRequest
Declaration
public virtual Task<AccountTax> GetAccountTaxAsync(string name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name from which tax settings will be retrieved |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<AccountTax> | A Task containing the RPC response. |
Sample code
// Create client
AccountTaxServiceClient accountTaxServiceClient = await AccountTaxServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "accounts/[ACCOUNT]/accounttax/[TAX]";
// Make the request
AccountTax response = await accountTaxServiceClient.GetAccountTaxAsync(name);
GetAccountTaxAsync(string, CancellationToken)
Returns the tax rules that match the conditions of GetAccountTaxRequest
Declaration
public virtual Task<AccountTax> GetAccountTaxAsync(string name, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name from which tax settings will be retrieved |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<AccountTax> | A Task containing the RPC response. |
Sample code
// Create client
AccountTaxServiceClient accountTaxServiceClient = await AccountTaxServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "accounts/[ACCOUNT]/accounttax/[TAX]";
// Make the request
AccountTax response = await accountTaxServiceClient.GetAccountTaxAsync(name);
ListAccountTax(AccountName, string, int?, CallSettings)
Lists the tax settings of the sub-accounts only in your Merchant Center account. This method can only be called on a multi-client account, otherwise it'll return an error.
Declaration
public virtual PagedEnumerable<ListAccountTaxResponse, AccountTax> ListAccountTax(AccountName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
AccountName | parent | Required. The parent, which owns this collection of account tax. Format: accounts/{account} |
string | pageToken | The token returned from the previous request. A value of |
int? | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedEnumerable<ListAccountTaxResponse, AccountTax> | A pageable sequence of AccountTax resources. |
Sample code
// Create client
AccountTaxServiceClient accountTaxServiceClient = AccountTaxServiceClient.Create();
// Initialize request argument(s)
AccountName parent = AccountName.FromAccount("[ACCOUNT]");
// Make the request
PagedEnumerable<ListAccountTaxResponse, AccountTax> response = accountTaxServiceClient.ListAccountTax(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (AccountTax 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 (ListAccountTaxResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (AccountTax 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<AccountTax> 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 (AccountTax 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;
ListAccountTax(ListAccountTaxRequest, CallSettings)
Lists the tax settings of the sub-accounts only in your Merchant Center account. This method can only be called on a multi-client account, otherwise it'll return an error.
Declaration
public virtual PagedEnumerable<ListAccountTaxResponse, AccountTax> ListAccountTax(ListAccountTaxRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListAccountTaxRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedEnumerable<ListAccountTaxResponse, AccountTax> | A pageable sequence of AccountTax resources. |
Sample code
// Create client
AccountTaxServiceClient accountTaxServiceClient = AccountTaxServiceClient.Create();
// Initialize request argument(s)
ListAccountTaxRequest request = new ListAccountTaxRequest
{
ParentAsAccountName = AccountName.FromAccount("[ACCOUNT]"),
};
// Make the request
PagedEnumerable<ListAccountTaxResponse, AccountTax> response = accountTaxServiceClient.ListAccountTax(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (AccountTax 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 (ListAccountTaxResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (AccountTax 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<AccountTax> 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 (AccountTax 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;
ListAccountTax(string, string, int?, CallSettings)
Lists the tax settings of the sub-accounts only in your Merchant Center account. This method can only be called on a multi-client account, otherwise it'll return an error.
Declaration
public virtual PagedEnumerable<ListAccountTaxResponse, AccountTax> ListAccountTax(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The parent, which owns this collection of account tax. Format: accounts/{account} |
string | pageToken | The token returned from the previous request. A value of |
int? | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedEnumerable<ListAccountTaxResponse, AccountTax> | A pageable sequence of AccountTax resources. |
Sample code
// Create client
AccountTaxServiceClient accountTaxServiceClient = AccountTaxServiceClient.Create();
// Initialize request argument(s)
string parent = "accounts/[ACCOUNT]";
// Make the request
PagedEnumerable<ListAccountTaxResponse, AccountTax> response = accountTaxServiceClient.ListAccountTax(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (AccountTax 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 (ListAccountTaxResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (AccountTax 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<AccountTax> 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 (AccountTax 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;
ListAccountTaxAsync(AccountName, string, int?, CallSettings)
Lists the tax settings of the sub-accounts only in your Merchant Center account. This method can only be called on a multi-client account, otherwise it'll return an error.
Declaration
public virtual PagedAsyncEnumerable<ListAccountTaxResponse, AccountTax> ListAccountTaxAsync(AccountName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
AccountName | parent | Required. The parent, which owns this collection of account tax. Format: accounts/{account} |
string | pageToken | The token returned from the previous request. A value of |
int? | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedAsyncEnumerable<ListAccountTaxResponse, AccountTax> | A pageable asynchronous sequence of AccountTax resources. |
Sample code
// Create client
AccountTaxServiceClient accountTaxServiceClient = await AccountTaxServiceClient.CreateAsync();
// Initialize request argument(s)
AccountName parent = AccountName.FromAccount("[ACCOUNT]");
// Make the request
PagedAsyncEnumerable<ListAccountTaxResponse, AccountTax> response = accountTaxServiceClient.ListAccountTaxAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((AccountTax item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListAccountTaxResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (AccountTax 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<AccountTax> 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 (AccountTax 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;
ListAccountTaxAsync(ListAccountTaxRequest, CallSettings)
Lists the tax settings of the sub-accounts only in your Merchant Center account. This method can only be called on a multi-client account, otherwise it'll return an error.
Declaration
public virtual PagedAsyncEnumerable<ListAccountTaxResponse, AccountTax> ListAccountTaxAsync(ListAccountTaxRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListAccountTaxRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedAsyncEnumerable<ListAccountTaxResponse, AccountTax> | A pageable asynchronous sequence of AccountTax resources. |
Sample code
// Create client
AccountTaxServiceClient accountTaxServiceClient = await AccountTaxServiceClient.CreateAsync();
// Initialize request argument(s)
ListAccountTaxRequest request = new ListAccountTaxRequest
{
ParentAsAccountName = AccountName.FromAccount("[ACCOUNT]"),
};
// Make the request
PagedAsyncEnumerable<ListAccountTaxResponse, AccountTax> response = accountTaxServiceClient.ListAccountTaxAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((AccountTax item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListAccountTaxResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (AccountTax 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<AccountTax> 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 (AccountTax 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;
ListAccountTaxAsync(string, string, int?, CallSettings)
Lists the tax settings of the sub-accounts only in your Merchant Center account. This method can only be called on a multi-client account, otherwise it'll return an error.
Declaration
public virtual PagedAsyncEnumerable<ListAccountTaxResponse, AccountTax> ListAccountTaxAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The parent, which owns this collection of account tax. Format: accounts/{account} |
string | pageToken | The token returned from the previous request. A value of |
int? | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedAsyncEnumerable<ListAccountTaxResponse, AccountTax> | A pageable asynchronous sequence of AccountTax resources. |
Sample code
// Create client
AccountTaxServiceClient accountTaxServiceClient = await AccountTaxServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "accounts/[ACCOUNT]";
// Make the request
PagedAsyncEnumerable<ListAccountTaxResponse, AccountTax> response = accountTaxServiceClient.ListAccountTaxAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((AccountTax item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListAccountTaxResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (AccountTax 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<AccountTax> 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 (AccountTax item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ShutdownDefaultChannelsAsync()
Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.
Declaration
public static Task ShutdownDefaultChannelsAsync()
Returns
Type | Description |
---|---|
Task | A task representing the asynchronous shutdown operation. |
Remarks
After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.
UpdateAccountTax(AccountTax, CallSettings)
Updates the tax settings of the account.
Declaration
public virtual AccountTax UpdateAccountTax(AccountTax accountTax, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
AccountTax | accountTax | Required. The tax setting that will be updated |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
AccountTax | The RPC response. |
Sample code
// Create client
AccountTaxServiceClient accountTaxServiceClient = AccountTaxServiceClient.Create();
// Initialize request argument(s)
AccountTax accountTax = new AccountTax();
// Make the request
AccountTax response = accountTaxServiceClient.UpdateAccountTax(accountTax);
UpdateAccountTax(AccountTax, FieldMask, CallSettings)
Updates the tax settings of the account.
Declaration
public virtual AccountTax UpdateAccountTax(AccountTax accountTax, FieldMask updateMask, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
AccountTax | accountTax | Required. The tax setting that will be updated |
FieldMask | updateMask | The list of fields to be updated |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
AccountTax | The RPC response. |
Sample code
// Create client
AccountTaxServiceClient accountTaxServiceClient = AccountTaxServiceClient.Create();
// Initialize request argument(s)
AccountTax accountTax = new AccountTax();
FieldMask updateMask = new FieldMask();
// Make the request
AccountTax response = accountTaxServiceClient.UpdateAccountTax(accountTax, updateMask);
UpdateAccountTax(UpdateAccountTaxRequest, CallSettings)
Updates the tax settings of the account.
Declaration
public virtual AccountTax UpdateAccountTax(UpdateAccountTaxRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
UpdateAccountTaxRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
AccountTax | The RPC response. |
Sample code
// Create client
AccountTaxServiceClient accountTaxServiceClient = AccountTaxServiceClient.Create();
// Initialize request argument(s)
UpdateAccountTaxRequest request = new UpdateAccountTaxRequest
{
AccountTax = new AccountTax(),
UpdateMask = new FieldMask(),
};
// Make the request
AccountTax response = accountTaxServiceClient.UpdateAccountTax(request);
UpdateAccountTaxAsync(AccountTax, CallSettings)
Updates the tax settings of the account.
Declaration
public virtual Task<AccountTax> UpdateAccountTaxAsync(AccountTax accountTax, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
AccountTax | accountTax | Required. The tax setting that will be updated |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<AccountTax> | A Task containing the RPC response. |
Sample code
// Create client
AccountTaxServiceClient accountTaxServiceClient = await AccountTaxServiceClient.CreateAsync();
// Initialize request argument(s)
AccountTax accountTax = new AccountTax();
// Make the request
AccountTax response = await accountTaxServiceClient.UpdateAccountTaxAsync(accountTax);
UpdateAccountTaxAsync(AccountTax, FieldMask, CallSettings)
Updates the tax settings of the account.
Declaration
public virtual Task<AccountTax> UpdateAccountTaxAsync(AccountTax accountTax, FieldMask updateMask, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
AccountTax | accountTax | Required. The tax setting that will be updated |
FieldMask | updateMask | The list of fields to be updated |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<AccountTax> | A Task containing the RPC response. |
Sample code
// Create client
AccountTaxServiceClient accountTaxServiceClient = await AccountTaxServiceClient.CreateAsync();
// Initialize request argument(s)
AccountTax accountTax = new AccountTax();
FieldMask updateMask = new FieldMask();
// Make the request
AccountTax response = await accountTaxServiceClient.UpdateAccountTaxAsync(accountTax, updateMask);
UpdateAccountTaxAsync(AccountTax, FieldMask, CancellationToken)
Updates the tax settings of the account.
Declaration
public virtual Task<AccountTax> UpdateAccountTaxAsync(AccountTax accountTax, FieldMask updateMask, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
AccountTax | accountTax | Required. The tax setting that will be updated |
FieldMask | updateMask | The list of fields to be updated |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<AccountTax> | A Task containing the RPC response. |
Sample code
// Create client
AccountTaxServiceClient accountTaxServiceClient = await AccountTaxServiceClient.CreateAsync();
// Initialize request argument(s)
AccountTax accountTax = new AccountTax();
FieldMask updateMask = new FieldMask();
// Make the request
AccountTax response = await accountTaxServiceClient.UpdateAccountTaxAsync(accountTax, updateMask);
UpdateAccountTaxAsync(AccountTax, CancellationToken)
Updates the tax settings of the account.
Declaration
public virtual Task<AccountTax> UpdateAccountTaxAsync(AccountTax accountTax, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
AccountTax | accountTax | Required. The tax setting that will be updated |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<AccountTax> | A Task containing the RPC response. |
Sample code
// Create client
AccountTaxServiceClient accountTaxServiceClient = await AccountTaxServiceClient.CreateAsync();
// Initialize request argument(s)
AccountTax accountTax = new AccountTax();
// Make the request
AccountTax response = await accountTaxServiceClient.UpdateAccountTaxAsync(accountTax);
UpdateAccountTaxAsync(UpdateAccountTaxRequest, CallSettings)
Updates the tax settings of the account.
Declaration
public virtual Task<AccountTax> UpdateAccountTaxAsync(UpdateAccountTaxRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
UpdateAccountTaxRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<AccountTax> | A Task containing the RPC response. |
Sample code
// Create client
AccountTaxServiceClient accountTaxServiceClient = await AccountTaxServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateAccountTaxRequest request = new UpdateAccountTaxRequest
{
AccountTax = new AccountTax(),
UpdateMask = new FieldMask(),
};
// Make the request
AccountTax response = await accountTaxServiceClient.UpdateAccountTaxAsync(request);
UpdateAccountTaxAsync(UpdateAccountTaxRequest, CancellationToken)
Updates the tax settings of the account.
Declaration
public virtual Task<AccountTax> UpdateAccountTaxAsync(UpdateAccountTaxRequest request, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
UpdateAccountTaxRequest | request | The request object containing all of the parameters for the API call. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<AccountTax> | A Task containing the RPC response. |
Sample code
// Create client
AccountTaxServiceClient accountTaxServiceClient = await AccountTaxServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateAccountTaxRequest request = new UpdateAccountTaxRequest
{
AccountTax = new AccountTax(),
UpdateMask = new FieldMask(),
};
// Make the request
AccountTax response = await accountTaxServiceClient.UpdateAccountTaxAsync(request);