Show / Hide Table of Contents

Class ContactService.ContactServiceClient

Client for ContactService

Inheritance
object
ClientBase
ClientBase<ContactService.ContactServiceClient>
ContactService.ContactServiceClient
Inherited Members
ClientBase<ContactService.ContactServiceClient>.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 ContactService.ContactServiceClient : ClientBase<ContactService.ContactServiceClient>

Constructors

ContactServiceClient()

Protected parameterless constructor to allow creation of test doubles.

Declaration
protected ContactServiceClient()

ContactServiceClient(CallInvoker)

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

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

The callInvoker to use to make remote calls.

ContactServiceClient(ChannelBase)

Creates a new client for ContactService

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

The channel to use to make remote calls.

ContactServiceClient(ClientBaseConfiguration)

Protected constructor to allow creation of configured clients.

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

The client configuration.

Methods

BatchCreateContacts(BatchCreateContactsRequest, CallOptions)

API to batch create Contact objects.

Declaration
public virtual BatchCreateContactsResponse BatchCreateContacts(BatchCreateContactsRequest request, CallOptions options)
Parameters
Type Name Description
BatchCreateContactsRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
BatchCreateContactsResponse

The response received from the server.

BatchCreateContacts(BatchCreateContactsRequest, Metadata, DateTime?, CancellationToken)

API to batch create Contact objects.

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

The response received from the server.

BatchCreateContactsAsync(BatchCreateContactsRequest, CallOptions)

API to batch create Contact objects.

Declaration
public virtual AsyncUnaryCall<BatchCreateContactsResponse> BatchCreateContactsAsync(BatchCreateContactsRequest request, CallOptions options)
Parameters
Type Name Description
BatchCreateContactsRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<BatchCreateContactsResponse>

The call object.

BatchCreateContactsAsync(BatchCreateContactsRequest, Metadata, DateTime?, CancellationToken)

API to batch create Contact objects.

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

The call object.

BatchUpdateContacts(BatchUpdateContactsRequest, CallOptions)

API to batch update Contact objects.

Declaration
public virtual BatchUpdateContactsResponse BatchUpdateContacts(BatchUpdateContactsRequest request, CallOptions options)
Parameters
Type Name Description
BatchUpdateContactsRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
BatchUpdateContactsResponse

The response received from the server.

BatchUpdateContacts(BatchUpdateContactsRequest, Metadata, DateTime?, CancellationToken)

API to batch update Contact objects.

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

The response received from the server.

BatchUpdateContactsAsync(BatchUpdateContactsRequest, CallOptions)

API to batch update Contact objects.

Declaration
public virtual AsyncUnaryCall<BatchUpdateContactsResponse> BatchUpdateContactsAsync(BatchUpdateContactsRequest request, CallOptions options)
Parameters
Type Name Description
BatchUpdateContactsRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<BatchUpdateContactsResponse>

The call object.

BatchUpdateContactsAsync(BatchUpdateContactsRequest, Metadata, DateTime?, CancellationToken)

API to batch update Contact objects.

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

The call object.

CreateContact(CreateContactRequest, CallOptions)

API to create a Contact object.

Declaration
public virtual Contact CreateContact(CreateContactRequest request, CallOptions options)
Parameters
Type Name Description
CreateContactRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
Contact

The response received from the server.

CreateContact(CreateContactRequest, Metadata, DateTime?, CancellationToken)

API to create a Contact object.

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

The response received from the server.

CreateContactAsync(CreateContactRequest, CallOptions)

API to create a Contact object.

Declaration
public virtual AsyncUnaryCall<Contact> CreateContactAsync(CreateContactRequest request, CallOptions options)
Parameters
Type Name Description
CreateContactRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<Contact>

The call object.

CreateContactAsync(CreateContactRequest, Metadata, DateTime?, CancellationToken)

API to create a Contact object.

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

The call object.

GetContact(GetContactRequest, CallOptions)

API to retrieve a Contact object.

Declaration
public virtual Contact GetContact(GetContactRequest request, CallOptions options)
Parameters
Type Name Description
GetContactRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
Contact

The response received from the server.

GetContact(GetContactRequest, Metadata, DateTime?, CancellationToken)

API to retrieve a Contact object.

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

The response received from the server.

GetContactAsync(GetContactRequest, CallOptions)

API to retrieve a Contact object.

Declaration
public virtual AsyncUnaryCall<Contact> GetContactAsync(GetContactRequest request, CallOptions options)
Parameters
Type Name Description
GetContactRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<Contact>

The call object.

GetContactAsync(GetContactRequest, Metadata, DateTime?, CancellationToken)

API to retrieve a Contact object.

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

The call object.

ListContacts(ListContactsRequest, CallOptions)

API to retrieve a list of Contact objects.

Declaration
public virtual ListContactsResponse ListContacts(ListContactsRequest request, CallOptions options)
Parameters
Type Name Description
ListContactsRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
ListContactsResponse

The response received from the server.

ListContacts(ListContactsRequest, Metadata, DateTime?, CancellationToken)

API to retrieve a list of Contact objects.

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

The response received from the server.

ListContactsAsync(ListContactsRequest, CallOptions)

API to retrieve a list of Contact objects.

Declaration
public virtual AsyncUnaryCall<ListContactsResponse> ListContactsAsync(ListContactsRequest request, CallOptions options)
Parameters
Type Name Description
ListContactsRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<ListContactsResponse>

The call object.

ListContactsAsync(ListContactsRequest, Metadata, DateTime?, CancellationToken)

API to retrieve a list of Contact objects.

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

The call object.

NewInstance(ClientBaseConfiguration)

Creates a new instance of client from given ClientBaseConfiguration.

Declaration
protected override ContactService.ContactServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type Name Description
ClientBase.ClientBaseConfiguration configuration
Returns
Type Description
ContactService.ContactServiceClient
Overrides
Grpc.Core.ClientBase<Google.Ads.AdManager.V1.ContactService.ContactServiceClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

UpdateContact(UpdateContactRequest, CallOptions)

API to update a Contact object.

Declaration
public virtual Contact UpdateContact(UpdateContactRequest request, CallOptions options)
Parameters
Type Name Description
UpdateContactRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
Contact

The response received from the server.

UpdateContact(UpdateContactRequest, Metadata, DateTime?, CancellationToken)

API to update a Contact object.

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

The response received from the server.

UpdateContactAsync(UpdateContactRequest, CallOptions)

API to update a Contact object.

Declaration
public virtual AsyncUnaryCall<Contact> UpdateContactAsync(UpdateContactRequest request, CallOptions options)
Parameters
Type Name Description
UpdateContactRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<Contact>

The call object.

UpdateContactAsync(UpdateContactRequest, Metadata, DateTime?, CancellationToken)

API to update a Contact object.

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

The call object.

In this article
Back to top Generated by DocFX