Class AccountLabelsService.AccountLabelsServiceClient
Client for AccountLabelsService
Inheritance
Inherited Members
Namespace: Google.Shopping.Css.V1
Assembly: Google.Shopping.Css.V1.dll
Syntax
public class AccountLabelsService.AccountLabelsServiceClient : ClientBase<AccountLabelsService.AccountLabelsServiceClient>
Constructors
AccountLabelsServiceClient()
Protected parameterless constructor to allow creation of test doubles.
Declaration
protected AccountLabelsServiceClient()
AccountLabelsServiceClient(CallInvoker)
Creates a new client for AccountLabelsService that uses a custom CallInvoker
.
Declaration
public AccountLabelsServiceClient(CallInvoker callInvoker)
Parameters
Type | Name | Description |
---|---|---|
CallInvoker | callInvoker | The callInvoker to use to make remote calls. |
AccountLabelsServiceClient(ChannelBase)
Creates a new client for AccountLabelsService
Declaration
public AccountLabelsServiceClient(ChannelBase channel)
Parameters
Type | Name | Description |
---|---|---|
ChannelBase | channel | The channel to use to make remote calls. |
AccountLabelsServiceClient(ClientBaseConfiguration)
Protected constructor to allow creation of configured clients.
Declaration
protected AccountLabelsServiceClient(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
ClientBase.ClientBaseConfiguration | configuration | The client configuration. |
Methods
CreateAccountLabel(CreateAccountLabelRequest, CallOptions)
Creates a new label, not assigned to any account.
Declaration
public virtual AccountLabel CreateAccountLabel(CreateAccountLabelRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
CreateAccountLabelRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
AccountLabel | The response received from the server. |
CreateAccountLabel(CreateAccountLabelRequest, Metadata, DateTime?, CancellationToken)
Creates a new label, not assigned to any account.
Declaration
public virtual AccountLabel CreateAccountLabel(CreateAccountLabelRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
CreateAccountLabelRequest | request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
AccountLabel | The response received from the server. |
CreateAccountLabelAsync(CreateAccountLabelRequest, CallOptions)
Creates a new label, not assigned to any account.
Declaration
public virtual AsyncUnaryCall<AccountLabel> CreateAccountLabelAsync(CreateAccountLabelRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
CreateAccountLabelRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<AccountLabel> | The call object. |
CreateAccountLabelAsync(CreateAccountLabelRequest, Metadata, DateTime?, CancellationToken)
Creates a new label, not assigned to any account.
Declaration
public virtual AsyncUnaryCall<AccountLabel> CreateAccountLabelAsync(CreateAccountLabelRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
CreateAccountLabelRequest | request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<AccountLabel> | The call object. |
DeleteAccountLabel(DeleteAccountLabelRequest, CallOptions)
Deletes a label and removes it from all accounts to which it was assigned.
Declaration
public virtual Empty DeleteAccountLabel(DeleteAccountLabelRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
DeleteAccountLabelRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
Empty | The response received from the server. |
DeleteAccountLabel(DeleteAccountLabelRequest, Metadata, DateTime?, CancellationToken)
Deletes a label and removes it from all accounts to which it was assigned.
Declaration
public virtual Empty DeleteAccountLabel(DeleteAccountLabelRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
DeleteAccountLabelRequest | request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
Empty | The response received from the server. |
DeleteAccountLabelAsync(DeleteAccountLabelRequest, CallOptions)
Deletes a label and removes it from all accounts to which it was assigned.
Declaration
public virtual AsyncUnaryCall<Empty> DeleteAccountLabelAsync(DeleteAccountLabelRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
DeleteAccountLabelRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<Empty> | The call object. |
DeleteAccountLabelAsync(DeleteAccountLabelRequest, Metadata, DateTime?, CancellationToken)
Deletes a label and removes it from all accounts to which it was assigned.
Declaration
public virtual AsyncUnaryCall<Empty> DeleteAccountLabelAsync(DeleteAccountLabelRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
DeleteAccountLabelRequest | request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<Empty> | The call object. |
ListAccountLabels(ListAccountLabelsRequest, CallOptions)
Lists the labels assigned to an account.
Declaration
public virtual ListAccountLabelsResponse ListAccountLabels(ListAccountLabelsRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
ListAccountLabelsRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
ListAccountLabelsResponse | The response received from the server. |
ListAccountLabels(ListAccountLabelsRequest, Metadata, DateTime?, CancellationToken)
Lists the labels assigned to an account.
Declaration
public virtual ListAccountLabelsResponse ListAccountLabels(ListAccountLabelsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
ListAccountLabelsRequest | request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
ListAccountLabelsResponse | The response received from the server. |
ListAccountLabelsAsync(ListAccountLabelsRequest, CallOptions)
Lists the labels assigned to an account.
Declaration
public virtual AsyncUnaryCall<ListAccountLabelsResponse> ListAccountLabelsAsync(ListAccountLabelsRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
ListAccountLabelsRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<ListAccountLabelsResponse> | The call object. |
ListAccountLabelsAsync(ListAccountLabelsRequest, Metadata, DateTime?, CancellationToken)
Lists the labels assigned to an account.
Declaration
public virtual AsyncUnaryCall<ListAccountLabelsResponse> ListAccountLabelsAsync(ListAccountLabelsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
ListAccountLabelsRequest | request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<ListAccountLabelsResponse> | The call object. |
NewInstance(ClientBaseConfiguration)
Creates a new instance of client from given ClientBaseConfiguration
.
Declaration
protected override AccountLabelsService.AccountLabelsServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
ClientBase.ClientBaseConfiguration | configuration |
Returns
Type | Description |
---|---|
AccountLabelsService.AccountLabelsServiceClient |
Overrides
UpdateAccountLabel(UpdateAccountLabelRequest, CallOptions)
Updates a label.
Declaration
public virtual AccountLabel UpdateAccountLabel(UpdateAccountLabelRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
UpdateAccountLabelRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
AccountLabel | The response received from the server. |
UpdateAccountLabel(UpdateAccountLabelRequest, Metadata, DateTime?, CancellationToken)
Updates a label.
Declaration
public virtual AccountLabel UpdateAccountLabel(UpdateAccountLabelRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
UpdateAccountLabelRequest | request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
AccountLabel | The response received from the server. |
UpdateAccountLabelAsync(UpdateAccountLabelRequest, CallOptions)
Updates a label.
Declaration
public virtual AsyncUnaryCall<AccountLabel> UpdateAccountLabelAsync(UpdateAccountLabelRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
UpdateAccountLabelRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<AccountLabel> | The call object. |
UpdateAccountLabelAsync(UpdateAccountLabelRequest, Metadata, DateTime?, CancellationToken)
Updates a label.
Declaration
public virtual AsyncUnaryCall<AccountLabel> UpdateAccountLabelAsync(UpdateAccountLabelRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
UpdateAccountLabelRequest | request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<AccountLabel> | The call object. |