Class AccountLabelsServiceClientImpl
AccountLabelsService client wrapper implementation, for convenient use.
Inherited Members
Namespace: Google.Shopping.Css.V1
Assembly: Google.Shopping.Css.V1.dll
Syntax
public sealed class AccountLabelsServiceClientImpl : AccountLabelsServiceClient
Remarks
Manages Merchant Center and CSS accounts labels.
Constructors
AccountLabelsServiceClientImpl(AccountLabelsServiceClient, AccountLabelsServiceSettings, ILogger)
Constructs a client wrapper for the AccountLabelsService service, with the specified gRPC client and settings.
Declaration
public AccountLabelsServiceClientImpl(AccountLabelsService.AccountLabelsServiceClient grpcClient, AccountLabelsServiceSettings settings, ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
AccountLabelsService.AccountLabelsServiceClient | grpcClient | The underlying gRPC client. |
AccountLabelsServiceSettings | settings | The base AccountLabelsServiceSettings used within this client. |
ILogger | logger | Optional ILogger to use within this client. |
Properties
GrpcClient
The underlying gRPC AccountLabelsService client
Declaration
public override AccountLabelsService.AccountLabelsServiceClient GrpcClient { get; }
Property Value
Type | Description |
---|---|
AccountLabelsService.AccountLabelsServiceClient |
Overrides
Methods
CreateAccountLabel(CreateAccountLabelRequest, CallSettings)
Creates a new label, not assigned to any account.
Declaration
public override AccountLabel CreateAccountLabel(CreateAccountLabelRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
CreateAccountLabelRequest | 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 |
---|---|
AccountLabel | The RPC response. |
Overrides
CreateAccountLabelAsync(CreateAccountLabelRequest, CallSettings)
Creates a new label, not assigned to any account.
Declaration
public override Task<AccountLabel> CreateAccountLabelAsync(CreateAccountLabelRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
CreateAccountLabelRequest | 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<AccountLabel> | A Task containing the RPC response. |
Overrides
DeleteAccountLabel(DeleteAccountLabelRequest, CallSettings)
Deletes a label and removes it from all accounts to which it was assigned.
Declaration
public override void DeleteAccountLabel(DeleteAccountLabelRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
DeleteAccountLabelRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Overrides
DeleteAccountLabelAsync(DeleteAccountLabelRequest, CallSettings)
Deletes a label and removes it from all accounts to which it was assigned.
Declaration
public override Task DeleteAccountLabelAsync(DeleteAccountLabelRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
DeleteAccountLabelRequest | 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. |
Overrides
ListAccountLabels(ListAccountLabelsRequest, CallSettings)
Lists the labels assigned to an account.
Declaration
public override PagedEnumerable<ListAccountLabelsResponse, AccountLabel> ListAccountLabels(ListAccountLabelsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListAccountLabelsRequest | 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<ListAccountLabelsResponse, AccountLabel> | A pageable sequence of AccountLabel resources. |
Overrides
ListAccountLabelsAsync(ListAccountLabelsRequest, CallSettings)
Lists the labels assigned to an account.
Declaration
public override PagedAsyncEnumerable<ListAccountLabelsResponse, AccountLabel> ListAccountLabelsAsync(ListAccountLabelsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListAccountLabelsRequest | 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<ListAccountLabelsResponse, AccountLabel> | A pageable asynchronous sequence of AccountLabel resources. |
Overrides
UpdateAccountLabel(UpdateAccountLabelRequest, CallSettings)
Updates a label.
Declaration
public override AccountLabel UpdateAccountLabel(UpdateAccountLabelRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
UpdateAccountLabelRequest | 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 |
---|---|
AccountLabel | The RPC response. |
Overrides
UpdateAccountLabelAsync(UpdateAccountLabelRequest, CallSettings)
Updates a label.
Declaration
public override Task<AccountLabel> UpdateAccountLabelAsync(UpdateAccountLabelRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
UpdateAccountLabelRequest | 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<AccountLabel> | A Task containing the RPC response. |