Show / Hide Table of Contents

Class DeviceCategoryService.DeviceCategoryServiceClient

Client for DeviceCategoryService

Inheritance
object
ClientBase
ClientBase<DeviceCategoryService.DeviceCategoryServiceClient>
DeviceCategoryService.DeviceCategoryServiceClient
Inherited Members
ClientBase<DeviceCategoryService.DeviceCategoryServiceClient>.WithHost(string)
ClientBase.CallInvoker
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ToString()
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public class DeviceCategoryService.DeviceCategoryServiceClient : ClientBase<DeviceCategoryService.DeviceCategoryServiceClient>

Constructors

DeviceCategoryServiceClient()

Protected parameterless constructor to allow creation of test doubles.

Declaration
protected DeviceCategoryServiceClient()

DeviceCategoryServiceClient(CallInvoker)

Creates a new client for DeviceCategoryService that uses a custom CallInvoker.

Declaration
public DeviceCategoryServiceClient(CallInvoker callInvoker)
Parameters
Type Name Description
CallInvoker callInvoker

The callInvoker to use to make remote calls.

DeviceCategoryServiceClient(ChannelBase)

Creates a new client for DeviceCategoryService

Declaration
public DeviceCategoryServiceClient(ChannelBase channel)
Parameters
Type Name Description
ChannelBase channel

The channel to use to make remote calls.

DeviceCategoryServiceClient(ClientBaseConfiguration)

Protected constructor to allow creation of configured clients.

Declaration
protected DeviceCategoryServiceClient(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type Name Description
ClientBase.ClientBaseConfiguration configuration

The client configuration.

Methods

GetDeviceCategory(GetDeviceCategoryRequest, CallOptions)

API to retrieve a DeviceCategory object.

Declaration
public virtual DeviceCategory GetDeviceCategory(GetDeviceCategoryRequest request, CallOptions options)
Parameters
Type Name Description
GetDeviceCategoryRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
DeviceCategory

The response received from the server.

GetDeviceCategory(GetDeviceCategoryRequest, Metadata, DateTime?, CancellationToken)

API to retrieve a DeviceCategory object.

Declaration
public virtual DeviceCategory GetDeviceCategory(GetDeviceCategoryRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
GetDeviceCategoryRequest 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
DeviceCategory

The response received from the server.

GetDeviceCategoryAsync(GetDeviceCategoryRequest, CallOptions)

API to retrieve a DeviceCategory object.

Declaration
public virtual AsyncUnaryCall<DeviceCategory> GetDeviceCategoryAsync(GetDeviceCategoryRequest request, CallOptions options)
Parameters
Type Name Description
GetDeviceCategoryRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<DeviceCategory>

The call object.

GetDeviceCategoryAsync(GetDeviceCategoryRequest, Metadata, DateTime?, CancellationToken)

API to retrieve a DeviceCategory object.

Declaration
public virtual AsyncUnaryCall<DeviceCategory> GetDeviceCategoryAsync(GetDeviceCategoryRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
GetDeviceCategoryRequest 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<DeviceCategory>

The call object.

ListDeviceCategories(ListDeviceCategoriesRequest, CallOptions)

API to retrieve a list of DeviceCategory objects.

Declaration
public virtual ListDeviceCategoriesResponse ListDeviceCategories(ListDeviceCategoriesRequest request, CallOptions options)
Parameters
Type Name Description
ListDeviceCategoriesRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
ListDeviceCategoriesResponse

The response received from the server.

ListDeviceCategories(ListDeviceCategoriesRequest, Metadata, DateTime?, CancellationToken)

API to retrieve a list of DeviceCategory objects.

Declaration
public virtual ListDeviceCategoriesResponse ListDeviceCategories(ListDeviceCategoriesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
ListDeviceCategoriesRequest 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
ListDeviceCategoriesResponse

The response received from the server.

ListDeviceCategoriesAsync(ListDeviceCategoriesRequest, CallOptions)

API to retrieve a list of DeviceCategory objects.

Declaration
public virtual AsyncUnaryCall<ListDeviceCategoriesResponse> ListDeviceCategoriesAsync(ListDeviceCategoriesRequest request, CallOptions options)
Parameters
Type Name Description
ListDeviceCategoriesRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<ListDeviceCategoriesResponse>

The call object.

ListDeviceCategoriesAsync(ListDeviceCategoriesRequest, Metadata, DateTime?, CancellationToken)

API to retrieve a list of DeviceCategory objects.

Declaration
public virtual AsyncUnaryCall<ListDeviceCategoriesResponse> ListDeviceCategoriesAsync(ListDeviceCategoriesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
ListDeviceCategoriesRequest 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<ListDeviceCategoriesResponse>

The call object.

NewInstance(ClientBaseConfiguration)

Creates a new instance of client from given ClientBaseConfiguration.

Declaration
protected override DeviceCategoryService.DeviceCategoryServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type Name Description
ClientBase.ClientBaseConfiguration configuration
Returns
Type Description
DeviceCategoryService.DeviceCategoryServiceClient
Overrides
Grpc.Core.ClientBase<Google.Ads.AdManager.V1.DeviceCategoryService.DeviceCategoryServiceClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)
In this article
Back to top Generated by DocFX