Class AutofeedSettingsServiceClient
AutofeedSettingsService client wrapper, for convenient use.
Namespace: Google.Shopping.Merchant.Accounts.V1Beta
Assembly: Google.Shopping.Merchant.Accounts.V1Beta.dll
Syntax
public abstract class AutofeedSettingsServiceClient
Remarks
Service to support autofeed setting.
Properties
DefaultEndpoint
The default endpoint for the AutofeedSettingsService 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 AutofeedSettingsService scopes.
Declaration
public static IReadOnlyList<string> DefaultScopes { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<string> |
Remarks
The default AutofeedSettingsService scopes are:
- https://www.googleapis.com/auth/content
GrpcClient
The underlying gRPC AutofeedSettingsService client
Declaration
public virtual AutofeedSettingsService.AutofeedSettingsServiceClient GrpcClient { get; }
Property Value
| Type | Description |
|---|---|
| AutofeedSettingsService.AutofeedSettingsServiceClient |
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 AutofeedSettingsServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use AutofeedSettingsServiceClientBuilder.
Declaration
public static AutofeedSettingsServiceClient Create()
Returns
| Type | Description |
|---|---|
| AutofeedSettingsServiceClient | The created AutofeedSettingsServiceClient. |
CreateAsync(CancellationToken)
Asynchronously creates a AutofeedSettingsServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use AutofeedSettingsServiceClientBuilder.
Declaration
public static Task<AutofeedSettingsServiceClient> CreateAsync(CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancellationToken | The CancellationToken to use while creating the client. |
Returns
| Type | Description |
|---|---|
| Task<AutofeedSettingsServiceClient> | The task representing the created AutofeedSettingsServiceClient. |
GetAutofeedSettings(AutofeedSettingsName, CallSettings)
Retrieves the autofeed settings of an account.
Declaration
public virtual AutofeedSettings GetAutofeedSettings(AutofeedSettingsName name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| AutofeedSettingsName | name | Required. The resource name of the autofeed settings.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| AutofeedSettings | The RPC response. |
Sample code
// Create client
AutofeedSettingsServiceClient autofeedSettingsServiceClient = AutofeedSettingsServiceClient.Create();
// Initialize request argument(s)
AutofeedSettingsName name = AutofeedSettingsName.FromAccount("[ACCOUNT]");
// Make the request
AutofeedSettings response = autofeedSettingsServiceClient.GetAutofeedSettings(name);
GetAutofeedSettings(GetAutofeedSettingsRequest, CallSettings)
Retrieves the autofeed settings of an account.
Declaration
public virtual AutofeedSettings GetAutofeedSettings(GetAutofeedSettingsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetAutofeedSettingsRequest | 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 |
|---|---|
| AutofeedSettings | The RPC response. |
Sample code
// Create client
AutofeedSettingsServiceClient autofeedSettingsServiceClient = AutofeedSettingsServiceClient.Create();
// Initialize request argument(s)
GetAutofeedSettingsRequest request = new GetAutofeedSettingsRequest
{
AutofeedSettingsName = AutofeedSettingsName.FromAccount("[ACCOUNT]"),
};
// Make the request
AutofeedSettings response = autofeedSettingsServiceClient.GetAutofeedSettings(request);
GetAutofeedSettings(string, CallSettings)
Retrieves the autofeed settings of an account.
Declaration
public virtual AutofeedSettings GetAutofeedSettings(string name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The resource name of the autofeed settings.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| AutofeedSettings | The RPC response. |
Sample code
// Create client
AutofeedSettingsServiceClient autofeedSettingsServiceClient = AutofeedSettingsServiceClient.Create();
// Initialize request argument(s)
string name = "accounts/[ACCOUNT]/autofeedSettings";
// Make the request
AutofeedSettings response = autofeedSettingsServiceClient.GetAutofeedSettings(name);
GetAutofeedSettingsAsync(AutofeedSettingsName, CallSettings)
Retrieves the autofeed settings of an account.
Declaration
public virtual Task<AutofeedSettings> GetAutofeedSettingsAsync(AutofeedSettingsName name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| AutofeedSettingsName | name | Required. The resource name of the autofeed settings.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Task<AutofeedSettings> | A Task containing the RPC response. |
Sample code
// Create client
AutofeedSettingsServiceClient autofeedSettingsServiceClient = await AutofeedSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
AutofeedSettingsName name = AutofeedSettingsName.FromAccount("[ACCOUNT]");
// Make the request
AutofeedSettings response = await autofeedSettingsServiceClient.GetAutofeedSettingsAsync(name);
GetAutofeedSettingsAsync(AutofeedSettingsName, CancellationToken)
Retrieves the autofeed settings of an account.
Declaration
public virtual Task<AutofeedSettings> GetAutofeedSettingsAsync(AutofeedSettingsName name, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| AutofeedSettingsName | name | Required. The resource name of the autofeed settings.
Format: |
| CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| Task<AutofeedSettings> | A Task containing the RPC response. |
Sample code
// Create client
AutofeedSettingsServiceClient autofeedSettingsServiceClient = await AutofeedSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
AutofeedSettingsName name = AutofeedSettingsName.FromAccount("[ACCOUNT]");
// Make the request
AutofeedSettings response = await autofeedSettingsServiceClient.GetAutofeedSettingsAsync(name);
GetAutofeedSettingsAsync(GetAutofeedSettingsRequest, CallSettings)
Retrieves the autofeed settings of an account.
Declaration
public virtual Task<AutofeedSettings> GetAutofeedSettingsAsync(GetAutofeedSettingsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetAutofeedSettingsRequest | 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<AutofeedSettings> | A Task containing the RPC response. |
Sample code
// Create client
AutofeedSettingsServiceClient autofeedSettingsServiceClient = await AutofeedSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
GetAutofeedSettingsRequest request = new GetAutofeedSettingsRequest
{
AutofeedSettingsName = AutofeedSettingsName.FromAccount("[ACCOUNT]"),
};
// Make the request
AutofeedSettings response = await autofeedSettingsServiceClient.GetAutofeedSettingsAsync(request);
GetAutofeedSettingsAsync(GetAutofeedSettingsRequest, CancellationToken)
Retrieves the autofeed settings of an account.
Declaration
public virtual Task<AutofeedSettings> GetAutofeedSettingsAsync(GetAutofeedSettingsRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| GetAutofeedSettingsRequest | 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<AutofeedSettings> | A Task containing the RPC response. |
Sample code
// Create client
AutofeedSettingsServiceClient autofeedSettingsServiceClient = await AutofeedSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
GetAutofeedSettingsRequest request = new GetAutofeedSettingsRequest
{
AutofeedSettingsName = AutofeedSettingsName.FromAccount("[ACCOUNT]"),
};
// Make the request
AutofeedSettings response = await autofeedSettingsServiceClient.GetAutofeedSettingsAsync(request);
GetAutofeedSettingsAsync(string, CallSettings)
Retrieves the autofeed settings of an account.
Declaration
public virtual Task<AutofeedSettings> GetAutofeedSettingsAsync(string name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The resource name of the autofeed settings.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Task<AutofeedSettings> | A Task containing the RPC response. |
Sample code
// Create client
AutofeedSettingsServiceClient autofeedSettingsServiceClient = await AutofeedSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "accounts/[ACCOUNT]/autofeedSettings";
// Make the request
AutofeedSettings response = await autofeedSettingsServiceClient.GetAutofeedSettingsAsync(name);
GetAutofeedSettingsAsync(string, CancellationToken)
Retrieves the autofeed settings of an account.
Declaration
public virtual Task<AutofeedSettings> GetAutofeedSettingsAsync(string name, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The resource name of the autofeed settings.
Format: |
| CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| Task<AutofeedSettings> | A Task containing the RPC response. |
Sample code
// Create client
AutofeedSettingsServiceClient autofeedSettingsServiceClient = await AutofeedSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "accounts/[ACCOUNT]/autofeedSettings";
// Make the request
AutofeedSettings response = await autofeedSettingsServiceClient.GetAutofeedSettingsAsync(name);
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.
UpdateAutofeedSettings(AutofeedSettings, FieldMask, CallSettings)
Updates the autofeed settings of an account.
Declaration
public virtual AutofeedSettings UpdateAutofeedSettings(AutofeedSettings autofeedSettings, FieldMask updateMask, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| AutofeedSettings | autofeedSettings | Required. The new version of the autofeed setting. |
| FieldMask | updateMask | Required. List of fields being updated. |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| AutofeedSettings | The RPC response. |
Sample code
// Create client
AutofeedSettingsServiceClient autofeedSettingsServiceClient = AutofeedSettingsServiceClient.Create();
// Initialize request argument(s)
AutofeedSettings autofeedSettings = new AutofeedSettings();
FieldMask updateMask = new FieldMask();
// Make the request
AutofeedSettings response = autofeedSettingsServiceClient.UpdateAutofeedSettings(autofeedSettings, updateMask);
UpdateAutofeedSettings(UpdateAutofeedSettingsRequest, CallSettings)
Updates the autofeed settings of an account.
Declaration
public virtual AutofeedSettings UpdateAutofeedSettings(UpdateAutofeedSettingsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateAutofeedSettingsRequest | 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 |
|---|---|
| AutofeedSettings | The RPC response. |
Sample code
// Create client
AutofeedSettingsServiceClient autofeedSettingsServiceClient = AutofeedSettingsServiceClient.Create();
// Initialize request argument(s)
UpdateAutofeedSettingsRequest request = new UpdateAutofeedSettingsRequest
{
AutofeedSettings = new AutofeedSettings(),
UpdateMask = new FieldMask(),
};
// Make the request
AutofeedSettings response = autofeedSettingsServiceClient.UpdateAutofeedSettings(request);
UpdateAutofeedSettingsAsync(AutofeedSettings, FieldMask, CallSettings)
Updates the autofeed settings of an account.
Declaration
public virtual Task<AutofeedSettings> UpdateAutofeedSettingsAsync(AutofeedSettings autofeedSettings, FieldMask updateMask, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| AutofeedSettings | autofeedSettings | Required. The new version of the autofeed setting. |
| FieldMask | updateMask | Required. List of fields being updated. |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Task<AutofeedSettings> | A Task containing the RPC response. |
Sample code
// Create client
AutofeedSettingsServiceClient autofeedSettingsServiceClient = await AutofeedSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
AutofeedSettings autofeedSettings = new AutofeedSettings();
FieldMask updateMask = new FieldMask();
// Make the request
AutofeedSettings response = await autofeedSettingsServiceClient.UpdateAutofeedSettingsAsync(autofeedSettings, updateMask);
UpdateAutofeedSettingsAsync(AutofeedSettings, FieldMask, CancellationToken)
Updates the autofeed settings of an account.
Declaration
public virtual Task<AutofeedSettings> UpdateAutofeedSettingsAsync(AutofeedSettings autofeedSettings, FieldMask updateMask, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| AutofeedSettings | autofeedSettings | Required. The new version of the autofeed setting. |
| FieldMask | updateMask | Required. List of fields being updated. |
| CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| Task<AutofeedSettings> | A Task containing the RPC response. |
Sample code
// Create client
AutofeedSettingsServiceClient autofeedSettingsServiceClient = await AutofeedSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
AutofeedSettings autofeedSettings = new AutofeedSettings();
FieldMask updateMask = new FieldMask();
// Make the request
AutofeedSettings response = await autofeedSettingsServiceClient.UpdateAutofeedSettingsAsync(autofeedSettings, updateMask);
UpdateAutofeedSettingsAsync(UpdateAutofeedSettingsRequest, CallSettings)
Updates the autofeed settings of an account.
Declaration
public virtual Task<AutofeedSettings> UpdateAutofeedSettingsAsync(UpdateAutofeedSettingsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateAutofeedSettingsRequest | 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<AutofeedSettings> | A Task containing the RPC response. |
Sample code
// Create client
AutofeedSettingsServiceClient autofeedSettingsServiceClient = await AutofeedSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateAutofeedSettingsRequest request = new UpdateAutofeedSettingsRequest
{
AutofeedSettings = new AutofeedSettings(),
UpdateMask = new FieldMask(),
};
// Make the request
AutofeedSettings response = await autofeedSettingsServiceClient.UpdateAutofeedSettingsAsync(request);
UpdateAutofeedSettingsAsync(UpdateAutofeedSettingsRequest, CancellationToken)
Updates the autofeed settings of an account.
Declaration
public virtual Task<AutofeedSettings> UpdateAutofeedSettingsAsync(UpdateAutofeedSettingsRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateAutofeedSettingsRequest | 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<AutofeedSettings> | A Task containing the RPC response. |
Sample code
// Create client
AutofeedSettingsServiceClient autofeedSettingsServiceClient = await AutofeedSettingsServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateAutofeedSettingsRequest request = new UpdateAutofeedSettingsRequest
{
AutofeedSettings = new AutofeedSettings(),
UpdateMask = new FieldMask(),
};
// Make the request
AutofeedSettings response = await autofeedSettingsServiceClient.UpdateAutofeedSettingsAsync(request);