Show / Hide Table of Contents

Class CssProductInputsServiceClient

CssProductInputsService client wrapper, for convenient use.

Inheritance
object
CssProductInputsServiceClient
CssProductInputsServiceClientImpl
Inherited Members
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ToString()
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}, where the last section css_product_input consists of 3 parts: contentLanguage~feedLabel~offerId. Example: accounts/123/cssProductInputs/de~DE~rawProvidedId123

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}, where the last section css_product_input consists of 3 parts: contentLanguage~feedLabel~offerId. Example: accounts/123/cssProductInputs/de~DE~rawProvidedId123

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}, where the last section css_product_input consists of 3 parts: contentLanguage~feedLabel~offerId. Example: accounts/123/cssProductInputs/de~DE~rawProvidedId123

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}, where the last section css_product_input consists of 3 parts: contentLanguage~feedLabel~offerId. Example: accounts/123/cssProductInputs/de~DE~rawProvidedId123

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}, where the last section css_product_input consists of 3 parts: contentLanguage~feedLabel~offerId. Example: accounts/123/cssProductInputs/de~DE~rawProvidedId123

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}, where the last section css_product_input consists of 3 parts: contentLanguage~feedLabel~offerId. Example: accounts/123/cssProductInputs/de~DE~rawProvidedId123

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(),
};
// 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(),
};
// 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(),
};
// 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.

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
CssProductInput cssProductInput

Required. The CSS product input resource to update. Information you submit will be applied to the processed CSS product as well.

FieldMask 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 custom_attribute. prefix.

Providing special "*" value for full CSS product replacement is not supported.

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)
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
UpdateCssProductInputRequest 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)
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
CssProductInput cssProductInput

Required. The CSS product input resource to update. Information you submit will be applied to the processed CSS product as well.

FieldMask 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 custom_attribute. prefix.

Providing special "*" value for full CSS product replacement is not supported.

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)
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
CssProductInput cssProductInput

Required. The CSS product input resource to update. Information you submit will be applied to the processed CSS product as well.

FieldMask 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 custom_attribute. prefix.

Providing special "*" value for full CSS product replacement is not supported.

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)
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
UpdateCssProductInputRequest 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)
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
UpdateCssProductInputRequest 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)
UpdateCssProductInputRequest request = new UpdateCssProductInputRequest
{
    CssProductInput = new CssProductInput(),
    UpdateMask = new FieldMask(),
};
// Make the request
CssProductInput response = await cssProductInputsServiceClient.UpdateCssProductInputAsync(request);
In this article
Back to top Generated by DocFX