Class RoleService.RoleServiceClient
Client for RoleService
Inheritance
Inherited Members
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public class RoleService.RoleServiceClient : ClientBase<RoleService.RoleServiceClient>
Constructors
RoleServiceClient()
Protected parameterless constructor to allow creation of test doubles.
Declaration
protected RoleServiceClient()
RoleServiceClient(CallInvoker)
Creates a new client for RoleService that uses a custom CallInvoker
.
Declaration
public RoleServiceClient(CallInvoker callInvoker)
Parameters
Type | Name | Description |
---|---|---|
CallInvoker | callInvoker | The callInvoker to use to make remote calls. |
RoleServiceClient(ChannelBase)
Creates a new client for RoleService
Declaration
public RoleServiceClient(ChannelBase channel)
Parameters
Type | Name | Description |
---|---|---|
ChannelBase | channel | The channel to use to make remote calls. |
RoleServiceClient(ClientBaseConfiguration)
Protected constructor to allow creation of configured clients.
Declaration
protected RoleServiceClient(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
ClientBase.ClientBaseConfiguration | configuration | The client configuration. |
Methods
GetRole(GetRoleRequest, CallOptions)
API to retrieve a Role
object.
Declaration
public virtual Role GetRole(GetRoleRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
GetRoleRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
Role | The response received from the server. |
GetRole(GetRoleRequest, Metadata, DateTime?, CancellationToken)
API to retrieve a Role
object.
Declaration
public virtual Role GetRole(GetRoleRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
GetRoleRequest | 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 |
---|---|
Role | The response received from the server. |
GetRoleAsync(GetRoleRequest, CallOptions)
API to retrieve a Role
object.
Declaration
public virtual AsyncUnaryCall<Role> GetRoleAsync(GetRoleRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
GetRoleRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<Role> | The call object. |
GetRoleAsync(GetRoleRequest, Metadata, DateTime?, CancellationToken)
API to retrieve a Role
object.
Declaration
public virtual AsyncUnaryCall<Role> GetRoleAsync(GetRoleRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
GetRoleRequest | 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<Role> | The call object. |
ListRoles(ListRolesRequest, CallOptions)
API to retrieve a list of Role
objects.
Declaration
public virtual ListRolesResponse ListRoles(ListRolesRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
ListRolesRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
ListRolesResponse | The response received from the server. |
ListRoles(ListRolesRequest, Metadata, DateTime?, CancellationToken)
API to retrieve a list of Role
objects.
Declaration
public virtual ListRolesResponse ListRoles(ListRolesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
ListRolesRequest | 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 |
---|---|
ListRolesResponse | The response received from the server. |
ListRolesAsync(ListRolesRequest, CallOptions)
API to retrieve a list of Role
objects.
Declaration
public virtual AsyncUnaryCall<ListRolesResponse> ListRolesAsync(ListRolesRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
ListRolesRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<ListRolesResponse> | The call object. |
ListRolesAsync(ListRolesRequest, Metadata, DateTime?, CancellationToken)
API to retrieve a list of Role
objects.
Declaration
public virtual AsyncUnaryCall<ListRolesResponse> ListRolesAsync(ListRolesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
ListRolesRequest | 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<ListRolesResponse> | The call object. |
NewInstance(ClientBaseConfiguration)
Creates a new instance of client from given ClientBaseConfiguration
.
Declaration
protected override RoleService.RoleServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
ClientBase.ClientBaseConfiguration | configuration |
Returns
Type | Description |
---|---|
RoleService.RoleServiceClient |