Class ContactServiceClientImpl
ContactService client wrapper implementation, for convenient use.
Inherited Members
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public sealed class ContactServiceClientImpl : ContactServiceClient
Remarks
Provides methods for handling Contact objects.
Constructors
ContactServiceClientImpl(ContactServiceClient, ContactServiceSettings, ILogger)
Constructs a client wrapper for the ContactService service, with the specified gRPC client and settings.
Declaration
public ContactServiceClientImpl(ContactService.ContactServiceClient grpcClient, ContactServiceSettings settings, ILogger logger)
Parameters
| Type | Name | Description |
|---|---|---|
| ContactService.ContactServiceClient | grpcClient | The underlying gRPC client. |
| ContactServiceSettings | settings | The base ContactServiceSettings used within this client. |
| ILogger | logger | Optional ILogger to use within this client. |
Properties
GrpcClient
The underlying gRPC ContactService client
Declaration
public override ContactService.ContactServiceClient GrpcClient { get; }
Property Value
| Type | Description |
|---|---|
| ContactService.ContactServiceClient |
Overrides
Methods
BatchCreateContacts(BatchCreateContactsRequest, CallSettings)
API to batch create Contact objects.
Declaration
public override BatchCreateContactsResponse BatchCreateContacts(BatchCreateContactsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchCreateContactsRequest | 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 |
|---|---|
| BatchCreateContactsResponse | The RPC response. |
Overrides
BatchCreateContactsAsync(BatchCreateContactsRequest, CallSettings)
API to batch create Contact objects.
Declaration
public override Task<BatchCreateContactsResponse> BatchCreateContactsAsync(BatchCreateContactsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchCreateContactsRequest | 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<BatchCreateContactsResponse> | A Task containing the RPC response. |
Overrides
BatchUpdateContacts(BatchUpdateContactsRequest, CallSettings)
API to batch update Contact objects.
Declaration
public override BatchUpdateContactsResponse BatchUpdateContacts(BatchUpdateContactsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchUpdateContactsRequest | 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 |
|---|---|
| BatchUpdateContactsResponse | The RPC response. |
Overrides
BatchUpdateContactsAsync(BatchUpdateContactsRequest, CallSettings)
API to batch update Contact objects.
Declaration
public override Task<BatchUpdateContactsResponse> BatchUpdateContactsAsync(BatchUpdateContactsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchUpdateContactsRequest | 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<BatchUpdateContactsResponse> | A Task containing the RPC response. |
Overrides
CreateContact(CreateContactRequest, CallSettings)
API to create a Contact object.
Declaration
public override Contact CreateContact(CreateContactRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateContactRequest | 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 |
|---|---|
| Contact | The RPC response. |
Overrides
CreateContactAsync(CreateContactRequest, CallSettings)
API to create a Contact object.
Declaration
public override Task<Contact> CreateContactAsync(CreateContactRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateContactRequest | 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<Contact> | A Task containing the RPC response. |
Overrides
GetContact(GetContactRequest, CallSettings)
API to retrieve a Contact object.
Declaration
public override Contact GetContact(GetContactRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetContactRequest | 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 |
|---|---|
| Contact | The RPC response. |
Overrides
GetContactAsync(GetContactRequest, CallSettings)
API to retrieve a Contact object.
Declaration
public override Task<Contact> GetContactAsync(GetContactRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetContactRequest | 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<Contact> | A Task containing the RPC response. |
Overrides
ListContacts(ListContactsRequest, CallSettings)
API to retrieve a list of Contact objects.
Declaration
public override PagedEnumerable<ListContactsResponse, Contact> ListContacts(ListContactsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListContactsRequest | 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<ListContactsResponse, Contact> | A pageable sequence of Contact resources. |
Overrides
ListContactsAsync(ListContactsRequest, CallSettings)
API to retrieve a list of Contact objects.
Declaration
public override PagedAsyncEnumerable<ListContactsResponse, Contact> ListContactsAsync(ListContactsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListContactsRequest | 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<ListContactsResponse, Contact> | A pageable asynchronous sequence of Contact resources. |
Overrides
UpdateContact(UpdateContactRequest, CallSettings)
API to update a Contact object.
Declaration
public override Contact UpdateContact(UpdateContactRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateContactRequest | 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 |
|---|---|
| Contact | The RPC response. |
Overrides
UpdateContactAsync(UpdateContactRequest, CallSettings)
API to update a Contact object.
Declaration
public override Task<Contact> UpdateContactAsync(UpdateContactRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateContactRequest | 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<Contact> | A Task containing the RPC response. |