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 |
---|---|
IRead |
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 |
---|---|
Css |
ServiceMetadata
The service metadata associated with this client type.
Declaration
public static ServiceMetadata ServiceMetadata { get; }
Property Value
Type | Description |
---|---|
Service |
Methods
Create()
Synchronously creates a Css
Declaration
public static CssProductInputsServiceClient Create()
Returns
Type | Description |
---|---|
Css |
The created Css |
CreateAsync(CancellationToken)
Asynchronously creates a Css
Declaration
public static Task<CssProductInputsServiceClient> CreateAsync(CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
Cancellation |
cancellationToken | The Cancellation |
Returns
Type | Description |
---|---|
Task<Css |
The task representing the created Css |
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 |
---|---|---|
Css |
name | Required. The name of the CSS product input resource to delete. Format: accounts/{account}/cssProductInputs/{css_product_input} |
Call |
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 |
---|---|---|
Delete |
request | The request object containing all of the parameters for the API call. |
Call |
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} |
Call |
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 |
---|---|---|
Css |
name | Required. The name of the CSS product input resource to delete. Format: accounts/{account}/cssProductInputs/{css_product_input} |
Call |
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 |
---|---|---|
Css |
name | Required. The name of the CSS product input resource to delete. Format: accounts/{account}/cssProductInputs/{css_product_input} |
Cancellation |
cancellationToken | A Cancellation |
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 |
---|---|---|
Delete |
request | The request object containing all of the parameters for the API call. |
Call |
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 |
---|---|---|
Delete |
request | The request object containing all of the parameters for the API call. |
Cancellation |
cancellationToken | A Cancellation |
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} |
Call |
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} |
Cancellation |
cancellationToken | A Cancellation |
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 |
---|---|---|
Insert |
request | The request object containing all of the parameters for the API call. |
Call |
callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Css |
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(),
};
// 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 |
---|---|---|
Insert |
request | The request object containing all of the parameters for the API call. |
Call |
callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<Css |
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(),
};
// 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 |
---|---|---|
Insert |
request | The request object containing all of the parameters for the API call. |
Cancellation |
cancellationToken | A Cancellation |
Returns
Type | Description |
---|---|
Task<Css |
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(),
};
// Make the request
CssProductInput response = await cssProductInputsServiceClient.InsertCssProductInputAsync(request);
ShutdownDefaultChannelsAsync()
Shuts down any channels automatically created by Create() and
Create
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
Create
UpdateCssProductInput(CssProductInput, FieldMask, CallSettings)
Updates the existing Css Product input in your CSS Center account.
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 UpdateCssProductInput(CssProductInput cssProductInput, FieldMask updateMask, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
Css |
cssProductInput | Required. The CSS product input resource to update. Information you submit will be applied to the processed CSS product as well. |
Field |
updateMask | The list of CSS product attributes to be updated. If the update mask is omitted, then it is treated as implied field mask equivalent to all fields that are populated (have a non-empty value). Attributes specified in the update mask without a value specified in the body will be deleted from the CSS product. Update mask can only be specified for top level fields in attributes and custom attributes. To specify the update mask for custom attributes you need to add the
Providing special "*" value for full CSS product replacement is not supported. |
Call |
callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Css |
The RPC response. |
Sample code
// Create client
CssProductInputsServiceClient cssProductInputsServiceClient = CssProductInputsServiceClient.Create();
// Initialize request argument(s)
CssProductInput cssProductInput = new CssProductInput();
FieldMask updateMask = new FieldMask();
// Make the request
CssProductInput response = cssProductInputsServiceClient.UpdateCssProductInput(cssProductInput, updateMask);
UpdateCssProductInput(UpdateCssProductInputRequest, CallSettings)
Updates the existing Css Product input in your CSS Center account.
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 UpdateCssProductInput(UpdateCssProductInputRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
Update |
request | The request object containing all of the parameters for the API call. |
Call |
callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Css |
The RPC response. |
Sample code
// Create client
CssProductInputsServiceClient cssProductInputsServiceClient = CssProductInputsServiceClient.Create();
// Initialize request argument(s)
UpdateCssProductInputRequest request = new UpdateCssProductInputRequest
{
CssProductInput = new CssProductInput(),
UpdateMask = new FieldMask(),
};
// Make the request
CssProductInput response = cssProductInputsServiceClient.UpdateCssProductInput(request);
UpdateCssProductInputAsync(CssProductInput, FieldMask, CallSettings)
Updates the existing Css Product input in your CSS Center account.
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> UpdateCssProductInputAsync(CssProductInput cssProductInput, FieldMask updateMask, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
Css |
cssProductInput | Required. The CSS product input resource to update. Information you submit will be applied to the processed CSS product as well. |
Field |
updateMask | The list of CSS product attributes to be updated. If the update mask is omitted, then it is treated as implied field mask equivalent to all fields that are populated (have a non-empty value). Attributes specified in the update mask without a value specified in the body will be deleted from the CSS product. Update mask can only be specified for top level fields in attributes and custom attributes. To specify the update mask for custom attributes you need to add the
Providing special "*" value for full CSS product replacement is not supported. |
Call |
callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<Css |
A Task containing the RPC response. |
Sample code
// Create client
CssProductInputsServiceClient cssProductInputsServiceClient = await CssProductInputsServiceClient.CreateAsync();
// Initialize request argument(s)
CssProductInput cssProductInput = new CssProductInput();
FieldMask updateMask = new FieldMask();
// Make the request
CssProductInput response = await cssProductInputsServiceClient.UpdateCssProductInputAsync(cssProductInput, updateMask);
UpdateCssProductInputAsync(CssProductInput, FieldMask, CancellationToken)
Updates the existing Css Product input in your CSS Center account.
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> UpdateCssProductInputAsync(CssProductInput cssProductInput, FieldMask updateMask, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
Css |
cssProductInput | Required. The CSS product input resource to update. Information you submit will be applied to the processed CSS product as well. |
Field |
updateMask | The list of CSS product attributes to be updated. If the update mask is omitted, then it is treated as implied field mask equivalent to all fields that are populated (have a non-empty value). Attributes specified in the update mask without a value specified in the body will be deleted from the CSS product. Update mask can only be specified for top level fields in attributes and custom attributes. To specify the update mask for custom attributes you need to add the
Providing special "*" value for full CSS product replacement is not supported. |
Cancellation |
cancellationToken | A Cancellation |
Returns
Type | Description |
---|---|
Task<Css |
A Task containing the RPC response. |
Sample code
// Create client
CssProductInputsServiceClient cssProductInputsServiceClient = await CssProductInputsServiceClient.CreateAsync();
// Initialize request argument(s)
CssProductInput cssProductInput = new CssProductInput();
FieldMask updateMask = new FieldMask();
// Make the request
CssProductInput response = await cssProductInputsServiceClient.UpdateCssProductInputAsync(cssProductInput, updateMask);
UpdateCssProductInputAsync(UpdateCssProductInputRequest, CallSettings)
Updates the existing Css Product input in your CSS Center account.
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> UpdateCssProductInputAsync(UpdateCssProductInputRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
Update |
request | The request object containing all of the parameters for the API call. |
Call |
callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<Css |
A Task containing the RPC response. |
Sample code
// Create client
CssProductInputsServiceClient cssProductInputsServiceClient = await CssProductInputsServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateCssProductInputRequest request = new UpdateCssProductInputRequest
{
CssProductInput = new CssProductInput(),
UpdateMask = new FieldMask(),
};
// Make the request
CssProductInput response = await cssProductInputsServiceClient.UpdateCssProductInputAsync(request);
UpdateCssProductInputAsync(UpdateCssProductInputRequest, CancellationToken)
Updates the existing Css Product input in your CSS Center account.
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> UpdateCssProductInputAsync(UpdateCssProductInputRequest request, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
Update |
request | The request object containing all of the parameters for the API call. |
Cancellation |
cancellationToken | A Cancellation |
Returns
Type | Description |
---|---|
Task<Css |
A Task containing the RPC response. |
Sample code
// Create client
CssProductInputsServiceClient cssProductInputsServiceClient = await CssProductInputsServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateCssProductInputRequest request = new UpdateCssProductInputRequest
{
CssProductInput = new CssProductInput(),
UpdateMask = new FieldMask(),
};
// Make the request
CssProductInput response = await cssProductInputsServiceClient.UpdateCssProductInputAsync(request);