Class CssProductInputsServiceClient
CssProductInputsService client wrapper, for convenient use.
Namespace: Google.Shopping.Css.V1
Assembly: Google.Shopping.Css.V1.dll
Syntax
public abstract class CssProductInputsServiceClient
Remarks
Service to use CssProductInput resource. This service helps to insert/update/delete CSS Products.
Properties
DefaultEndpoint
The default endpoint for the CssProductInputsService service, which is a host of "css.googleapis.com" and a port of 443.
Declaration
public static string DefaultEndpoint { get; }
Property Value
Type | Description |
---|---|
string |
DefaultScopes
The default CssProductInputsService scopes.
Declaration
public static IReadOnlyList<string> DefaultScopes { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<string> |
Remarks
The default CssProductInputsService scopes are:
- https://www.googleapis.com/auth/content
GrpcClient
The underlying gRPC CssProductInputsService client
Declaration
public virtual CssProductInputsService.CssProductInputsServiceClient GrpcClient { get; }
Property Value
Type | Description |
---|---|
CssProductInputsService.CssProductInputsServiceClient |
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 CssProductInputsServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use CssProductInputsServiceClientBuilder.
Declaration
public static CssProductInputsServiceClient Create()
Returns
Type | Description |
---|---|
CssProductInputsServiceClient | The created CssProductInputsServiceClient. |
CreateAsync(CancellationToken)
Asynchronously creates a CssProductInputsServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use CssProductInputsServiceClientBuilder.
Declaration
public static Task<CssProductInputsServiceClient> CreateAsync(CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken | The CancellationToken to use while creating the client. |
Returns
Type | Description |
---|---|
Task<CssProductInputsServiceClient> | The task representing the created CssProductInputsServiceClient. |
DeleteCssProductInput(CssProductInputName, CallSettings)
Deletes a CSS Product input from your CSS Center account.
After a delete it may take several minutes until the input is no longer available.
Declaration
public virtual void DeleteCssProductInput(CssProductInputName name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
CssProductInputName | name | Required. The name of the CSS product input resource to delete. Format: accounts/{account}/cssProductInputs/{css_product_input} |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Sample code
// Create client
CssProductInputsServiceClient cssProductInputsServiceClient = CssProductInputsServiceClient.Create();
// Initialize request argument(s)
CssProductInputName name = CssProductInputName.FromAccountCssProductInput("[ACCOUNT]", "[CSS_PRODUCT_INPUT]");
// Make the request
cssProductInputsServiceClient.DeleteCssProductInput(name);
DeleteCssProductInput(DeleteCssProductInputRequest, CallSettings)
Deletes a CSS Product input from your CSS Center account.
After a delete it may take several minutes until the input is no longer available.
Declaration
public virtual void DeleteCssProductInput(DeleteCssProductInputRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
DeleteCssProductInputRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Sample code
// Create client
CssProductInputsServiceClient cssProductInputsServiceClient = CssProductInputsServiceClient.Create();
// Initialize request argument(s)
DeleteCssProductInputRequest request = new DeleteCssProductInputRequest
{
CssProductInputName = CssProductInputName.FromAccountCssProductInput("[ACCOUNT]", "[CSS_PRODUCT_INPUT]"),
SupplementalFeedId = 0L,
};
// Make the request
cssProductInputsServiceClient.DeleteCssProductInput(request);
DeleteCssProductInput(string, CallSettings)
Deletes a CSS Product input from your CSS Center account.
After a delete it may take several minutes until the input is no longer available.
Declaration
public virtual void DeleteCssProductInput(string name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the CSS product input resource to delete. Format: accounts/{account}/cssProductInputs/{css_product_input} |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Sample code
// Create client
CssProductInputsServiceClient cssProductInputsServiceClient = CssProductInputsServiceClient.Create();
// Initialize request argument(s)
string name = "accounts/[ACCOUNT]/cssProductInputs/[CSS_PRODUCT_INPUT]";
// Make the request
cssProductInputsServiceClient.DeleteCssProductInput(name);
DeleteCssProductInputAsync(CssProductInputName, CallSettings)
Deletes a CSS Product input from your CSS Center account.
After a delete it may take several minutes until the input is no longer available.
Declaration
public virtual Task DeleteCssProductInputAsync(CssProductInputName name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
CssProductInputName | name | Required. The name of the CSS product input resource to delete. Format: accounts/{account}/cssProductInputs/{css_product_input} |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
CssProductInputsServiceClient cssProductInputsServiceClient = await CssProductInputsServiceClient.CreateAsync();
// Initialize request argument(s)
CssProductInputName name = CssProductInputName.FromAccountCssProductInput("[ACCOUNT]", "[CSS_PRODUCT_INPUT]");
// Make the request
await cssProductInputsServiceClient.DeleteCssProductInputAsync(name);
DeleteCssProductInputAsync(CssProductInputName, CancellationToken)
Deletes a CSS Product input from your CSS Center account.
After a delete it may take several minutes until the input is no longer available.
Declaration
public virtual Task DeleteCssProductInputAsync(CssProductInputName name, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
CssProductInputName | name | Required. The name of the CSS product input resource to delete. Format: accounts/{account}/cssProductInputs/{css_product_input} |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
CssProductInputsServiceClient cssProductInputsServiceClient = await CssProductInputsServiceClient.CreateAsync();
// Initialize request argument(s)
CssProductInputName name = CssProductInputName.FromAccountCssProductInput("[ACCOUNT]", "[CSS_PRODUCT_INPUT]");
// Make the request
await cssProductInputsServiceClient.DeleteCssProductInputAsync(name);
DeleteCssProductInputAsync(DeleteCssProductInputRequest, CallSettings)
Deletes a CSS Product input from your CSS Center account.
After a delete it may take several minutes until the input is no longer available.
Declaration
public virtual Task DeleteCssProductInputAsync(DeleteCssProductInputRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
DeleteCssProductInputRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
CssProductInputsServiceClient cssProductInputsServiceClient = await CssProductInputsServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteCssProductInputRequest request = new DeleteCssProductInputRequest
{
CssProductInputName = CssProductInputName.FromAccountCssProductInput("[ACCOUNT]", "[CSS_PRODUCT_INPUT]"),
SupplementalFeedId = 0L,
};
// Make the request
await cssProductInputsServiceClient.DeleteCssProductInputAsync(request);
DeleteCssProductInputAsync(DeleteCssProductInputRequest, CancellationToken)
Deletes a CSS Product input from your CSS Center account.
After a delete it may take several minutes until the input is no longer available.
Declaration
public virtual Task DeleteCssProductInputAsync(DeleteCssProductInputRequest request, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
DeleteCssProductInputRequest | request | The request object containing all of the parameters for the API call. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
CssProductInputsServiceClient cssProductInputsServiceClient = await CssProductInputsServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteCssProductInputRequest request = new DeleteCssProductInputRequest
{
CssProductInputName = CssProductInputName.FromAccountCssProductInput("[ACCOUNT]", "[CSS_PRODUCT_INPUT]"),
SupplementalFeedId = 0L,
};
// Make the request
await cssProductInputsServiceClient.DeleteCssProductInputAsync(request);
DeleteCssProductInputAsync(string, CallSettings)
Deletes a CSS Product input from your CSS Center account.
After a delete it may take several minutes until the input is no longer available.
Declaration
public virtual Task DeleteCssProductInputAsync(string name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the CSS product input resource to delete. Format: accounts/{account}/cssProductInputs/{css_product_input} |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
CssProductInputsServiceClient cssProductInputsServiceClient = await CssProductInputsServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "accounts/[ACCOUNT]/cssProductInputs/[CSS_PRODUCT_INPUT]";
// Make the request
await cssProductInputsServiceClient.DeleteCssProductInputAsync(name);
DeleteCssProductInputAsync(string, CancellationToken)
Deletes a CSS Product input from your CSS Center account.
After a delete it may take several minutes until the input is no longer available.
Declaration
public virtual Task DeleteCssProductInputAsync(string name, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the CSS product input resource to delete. Format: accounts/{account}/cssProductInputs/{css_product_input} |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
CssProductInputsServiceClient cssProductInputsServiceClient = await CssProductInputsServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "accounts/[ACCOUNT]/cssProductInputs/[CSS_PRODUCT_INPUT]";
// Make the request
await cssProductInputsServiceClient.DeleteCssProductInputAsync(name);
InsertCssProductInput(InsertCssProductInputRequest, CallSettings)
Uploads a CssProductInput to your CSS Center account. If an input with the same contentLanguage, identity, feedLabel and feedId already exists, this method replaces that entry.
After inserting, updating, or deleting a CSS Product input, it may take several minutes before the processed CSS Product can be retrieved.
Declaration
public virtual CssProductInput InsertCssProductInput(InsertCssProductInputRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
InsertCssProductInputRequest | 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 |
---|---|
CssProductInput | The RPC response. |
Sample code
// Create client
CssProductInputsServiceClient cssProductInputsServiceClient = CssProductInputsServiceClient.Create();
// Initialize request argument(s)
InsertCssProductInputRequest request = new InsertCssProductInputRequest
{
ParentAsAccountName = AccountName.FromAccount("[ACCOUNT]"),
CssProductInput = new CssProductInput(),
FeedId = 0L,
};
// Make the request
CssProductInput response = cssProductInputsServiceClient.InsertCssProductInput(request);
InsertCssProductInputAsync(InsertCssProductInputRequest, CallSettings)
Uploads a CssProductInput to your CSS Center account. If an input with the same contentLanguage, identity, feedLabel and feedId already exists, this method replaces that entry.
After inserting, updating, or deleting a CSS Product input, it may take several minutes before the processed CSS Product can be retrieved.
Declaration
public virtual Task<CssProductInput> InsertCssProductInputAsync(InsertCssProductInputRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
InsertCssProductInputRequest | 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<CssProductInput> | A Task containing the RPC response. |
Sample code
// Create client
CssProductInputsServiceClient cssProductInputsServiceClient = await CssProductInputsServiceClient.CreateAsync();
// Initialize request argument(s)
InsertCssProductInputRequest request = new InsertCssProductInputRequest
{
ParentAsAccountName = AccountName.FromAccount("[ACCOUNT]"),
CssProductInput = new CssProductInput(),
FeedId = 0L,
};
// Make the request
CssProductInput response = await cssProductInputsServiceClient.InsertCssProductInputAsync(request);
InsertCssProductInputAsync(InsertCssProductInputRequest, CancellationToken)
Uploads a CssProductInput to your CSS Center account. If an input with the same contentLanguage, identity, feedLabel and feedId already exists, this method replaces that entry.
After inserting, updating, or deleting a CSS Product input, it may take several minutes before the processed CSS Product can be retrieved.
Declaration
public virtual Task<CssProductInput> InsertCssProductInputAsync(InsertCssProductInputRequest request, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
InsertCssProductInputRequest | 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<CssProductInput> | A Task containing the RPC response. |
Sample code
// Create client
CssProductInputsServiceClient cssProductInputsServiceClient = await CssProductInputsServiceClient.CreateAsync();
// Initialize request argument(s)
InsertCssProductInputRequest request = new InsertCssProductInputRequest
{
ParentAsAccountName = AccountName.FromAccount("[ACCOUNT]"),
CssProductInput = new CssProductInput(),
FeedId = 0L,
};
// Make the request
CssProductInput response = await cssProductInputsServiceClient.InsertCssProductInputAsync(request);
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.