Class RoleServiceClientImpl
RoleService client wrapper implementation, for convenient use.
Inherited Members
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public sealed class RoleServiceClientImpl : RoleServiceClient
Remarks
Provides methods for handling Role objects.
Constructors
RoleServiceClientImpl(RoleServiceClient, RoleServiceSettings, ILogger)
Constructs a client wrapper for the RoleService service, with the specified gRPC client and settings.
Declaration
public RoleServiceClientImpl(RoleService.RoleServiceClient grpcClient, RoleServiceSettings settings, ILogger logger)
Parameters
| Type | Name | Description |
|---|---|---|
| RoleService.RoleServiceClient | grpcClient | The underlying gRPC client. |
| RoleServiceSettings | settings | The base RoleServiceSettings used within this client. |
| ILogger | logger | Optional ILogger to use within this client. |
Properties
GrpcClient
The underlying gRPC RoleService client
Declaration
public override RoleService.RoleServiceClient GrpcClient { get; }
Property Value
| Type | Description |
|---|---|
| RoleService.RoleServiceClient |
Overrides
Methods
GetRole(GetRoleRequest, CallSettings)
API to retrieve a Role object.
Declaration
public override Role GetRole(GetRoleRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetRoleRequest | 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 |
|---|---|
| Role | The RPC response. |
Overrides
GetRoleAsync(GetRoleRequest, CallSettings)
API to retrieve a Role object.
Declaration
public override Task<Role> GetRoleAsync(GetRoleRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetRoleRequest | 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<Role> | A Task containing the RPC response. |
Overrides
ListRoles(ListRolesRequest, CallSettings)
API to retrieve a list of Role objects.
Declaration
public override PagedEnumerable<ListRolesResponse, Role> ListRoles(ListRolesRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListRolesRequest | 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<ListRolesResponse, Role> | A pageable sequence of Role resources. |
Overrides
ListRolesAsync(ListRolesRequest, CallSettings)
API to retrieve a list of Role objects.
Declaration
public override PagedAsyncEnumerable<ListRolesResponse, Role> ListRolesAsync(ListRolesRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListRolesRequest | 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<ListRolesResponse, Role> | A pageable asynchronous sequence of Role resources. |