Show / Hide Table of Contents

Class ContentService.ContentServiceClient

Client for ContentService

Inheritance
object
ClientBase
ClientBase<ContentService.ContentServiceClient>
ContentService.ContentServiceClient
Inherited Members
ClientBase<ContentService.ContentServiceClient>.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 ContentService.ContentServiceClient : ClientBase<ContentService.ContentServiceClient>

Constructors

ContentServiceClient()

Protected parameterless constructor to allow creation of test doubles.

Declaration
protected ContentServiceClient()

ContentServiceClient(CallInvoker)

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

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

The callInvoker to use to make remote calls.

ContentServiceClient(ChannelBase)

Creates a new client for ContentService

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

The channel to use to make remote calls.

ContentServiceClient(ClientBaseConfiguration)

Protected constructor to allow creation of configured clients.

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

The client configuration.

Methods

GetContent(GetContentRequest, CallOptions)

API to retrieve a Content object.

Declaration
public virtual Content GetContent(GetContentRequest request, CallOptions options)
Parameters
Type Name Description
GetContentRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
Content

The response received from the server.

GetContent(GetContentRequest, Metadata, DateTime?, CancellationToken)

API to retrieve a Content object.

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

The response received from the server.

GetContentAsync(GetContentRequest, CallOptions)

API to retrieve a Content object.

Declaration
public virtual AsyncUnaryCall<Content> GetContentAsync(GetContentRequest request, CallOptions options)
Parameters
Type Name Description
GetContentRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<Content>

The call object.

GetContentAsync(GetContentRequest, Metadata, DateTime?, CancellationToken)

API to retrieve a Content object.

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

The call object.

ListContent(ListContentRequest, CallOptions)

API to retrieve a list of Content objects.

Declaration
public virtual ListContentResponse ListContent(ListContentRequest request, CallOptions options)
Parameters
Type Name Description
ListContentRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
ListContentResponse

The response received from the server.

ListContent(ListContentRequest, Metadata, DateTime?, CancellationToken)

API to retrieve a list of Content objects.

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

The response received from the server.

ListContentAsync(ListContentRequest, CallOptions)

API to retrieve a list of Content objects.

Declaration
public virtual AsyncUnaryCall<ListContentResponse> ListContentAsync(ListContentRequest request, CallOptions options)
Parameters
Type Name Description
ListContentRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<ListContentResponse>

The call object.

ListContentAsync(ListContentRequest, Metadata, DateTime?, CancellationToken)

API to retrieve a list of Content objects.

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

The call object.

NewInstance(ClientBaseConfiguration)

Creates a new instance of client from given ClientBaseConfiguration.

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