Class LabelServiceClientImpl
LabelService client wrapper implementation, for convenient use.
Inherited Members
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public sealed class LabelServiceClientImpl : LabelServiceClient
Remarks
Provides methods for handling Label objects.
Constructors
LabelServiceClientImpl(LabelServiceClient, LabelServiceSettings, ILogger)
Constructs a client wrapper for the LabelService service, with the specified gRPC client and settings.
Declaration
public LabelServiceClientImpl(LabelService.LabelServiceClient grpcClient, LabelServiceSettings settings, ILogger logger)
Parameters
| Type | Name | Description |
|---|---|---|
| LabelService.LabelServiceClient | grpcClient | The underlying gRPC client. |
| LabelServiceSettings | settings | The base LabelServiceSettings used within this client. |
| ILogger | logger | Optional ILogger to use within this client. |
Properties
GrpcClient
The underlying gRPC LabelService client
Declaration
public override LabelService.LabelServiceClient GrpcClient { get; }
Property Value
| Type | Description |
|---|---|
| LabelService.LabelServiceClient |
Overrides
Methods
BatchActivateLabels(BatchActivateLabelsRequest, CallSettings)
API to activate Label objects.
Declaration
public override BatchActivateLabelsResponse BatchActivateLabels(BatchActivateLabelsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchActivateLabelsRequest | 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 |
|---|---|
| BatchActivateLabelsResponse | The RPC response. |
Overrides
BatchActivateLabelsAsync(BatchActivateLabelsRequest, CallSettings)
API to activate Label objects.
Declaration
public override Task<BatchActivateLabelsResponse> BatchActivateLabelsAsync(BatchActivateLabelsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchActivateLabelsRequest | 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<BatchActivateLabelsResponse> | A Task containing the RPC response. |
Overrides
BatchCreateLabels(BatchCreateLabelsRequest, CallSettings)
API to batch create Label objects.
Declaration
public override BatchCreateLabelsResponse BatchCreateLabels(BatchCreateLabelsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchCreateLabelsRequest | 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 |
|---|---|
| BatchCreateLabelsResponse | The RPC response. |
Overrides
BatchCreateLabelsAsync(BatchCreateLabelsRequest, CallSettings)
API to batch create Label objects.
Declaration
public override Task<BatchCreateLabelsResponse> BatchCreateLabelsAsync(BatchCreateLabelsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchCreateLabelsRequest | 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<BatchCreateLabelsResponse> | A Task containing the RPC response. |
Overrides
BatchDeactivateLabels(BatchDeactivateLabelsRequest, CallSettings)
API to deactivate Label objects.
Declaration
public override BatchDeactivateLabelsResponse BatchDeactivateLabels(BatchDeactivateLabelsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchDeactivateLabelsRequest | 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 |
|---|---|
| BatchDeactivateLabelsResponse | The RPC response. |
Overrides
BatchDeactivateLabelsAsync(BatchDeactivateLabelsRequest, CallSettings)
API to deactivate Label objects.
Declaration
public override Task<BatchDeactivateLabelsResponse> BatchDeactivateLabelsAsync(BatchDeactivateLabelsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchDeactivateLabelsRequest | 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<BatchDeactivateLabelsResponse> | A Task containing the RPC response. |
Overrides
BatchUpdateLabels(BatchUpdateLabelsRequest, CallSettings)
API to batch update Label objects.
Declaration
public override BatchUpdateLabelsResponse BatchUpdateLabels(BatchUpdateLabelsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchUpdateLabelsRequest | 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 |
|---|---|
| BatchUpdateLabelsResponse | The RPC response. |
Overrides
BatchUpdateLabelsAsync(BatchUpdateLabelsRequest, CallSettings)
API to batch update Label objects.
Declaration
public override Task<BatchUpdateLabelsResponse> BatchUpdateLabelsAsync(BatchUpdateLabelsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchUpdateLabelsRequest | 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<BatchUpdateLabelsResponse> | A Task containing the RPC response. |
Overrides
CreateLabel(CreateLabelRequest, CallSettings)
API to create a Label object.
Declaration
public override Label CreateLabel(CreateLabelRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateLabelRequest | 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 |
|---|---|
| Label | The RPC response. |
Overrides
CreateLabelAsync(CreateLabelRequest, CallSettings)
API to create a Label object.
Declaration
public override Task<Label> CreateLabelAsync(CreateLabelRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateLabelRequest | 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<Label> | A Task containing the RPC response. |
Overrides
GetLabel(GetLabelRequest, CallSettings)
API to retrieve a Label object.
Declaration
public override Label GetLabel(GetLabelRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetLabelRequest | 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 |
|---|---|
| Label | The RPC response. |
Overrides
GetLabelAsync(GetLabelRequest, CallSettings)
API to retrieve a Label object.
Declaration
public override Task<Label> GetLabelAsync(GetLabelRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetLabelRequest | 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<Label> | A Task containing the RPC response. |
Overrides
ListLabels(ListLabelsRequest, CallSettings)
API to retrieve a list of Label objects.
Declaration
public override PagedEnumerable<ListLabelsResponse, Label> ListLabels(ListLabelsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListLabelsRequest | 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<ListLabelsResponse, Label> | A pageable sequence of Label resources. |
Overrides
ListLabelsAsync(ListLabelsRequest, CallSettings)
API to retrieve a list of Label objects.
Declaration
public override PagedAsyncEnumerable<ListLabelsResponse, Label> ListLabelsAsync(ListLabelsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListLabelsRequest | 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<ListLabelsResponse, Label> | A pageable asynchronous sequence of Label resources. |
Overrides
UpdateLabel(UpdateLabelRequest, CallSettings)
API to update a Label object.
Declaration
public override Label UpdateLabel(UpdateLabelRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateLabelRequest | 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 |
|---|---|
| Label | The RPC response. |
Overrides
UpdateLabelAsync(UpdateLabelRequest, CallSettings)
API to update a Label object.
Declaration
public override Task<Label> UpdateLabelAsync(UpdateLabelRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateLabelRequest | 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<Label> | A Task containing the RPC response. |