Essential Contacts v1 API - Class EssentialContactsServiceClientImpl (2.4.0)

public sealed class EssentialContactsServiceClientImpl : EssentialContactsServiceClient

Reference documentation and code samples for the Essential Contacts v1 API class EssentialContactsServiceClientImpl.

EssentialContactsService client wrapper implementation, for convenient use.

Inheritance

object > EssentialContactsServiceClient > EssentialContactsServiceClientImpl

Namespace

Google.Cloud.EssentialContacts.V1

Assembly

Google.Cloud.EssentialContacts.V1.dll

Remarks

Manages contacts for important Google Cloud notifications.

Constructors

EssentialContactsServiceClientImpl(EssentialContactsServiceClient, EssentialContactsServiceSettings, ILogger)

public EssentialContactsServiceClientImpl(EssentialContactsService.EssentialContactsServiceClient grpcClient, EssentialContactsServiceSettings settings, ILogger logger)

Constructs a client wrapper for the EssentialContactsService service, with the specified gRPC client and settings.

Parameters
Name Description
grpcClient EssentialContactsServiceEssentialContactsServiceClient

The underlying gRPC client.

settings EssentialContactsServiceSettings

The base EssentialContactsServiceSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override EssentialContactsService.EssentialContactsServiceClient GrpcClient { get; }

The underlying gRPC EssentialContactsService client

Property Value
Type Description
EssentialContactsServiceEssentialContactsServiceClient
Overrides

Methods

ComputeContacts(ComputeContactsRequest, CallSettings)

public override PagedEnumerable<ComputeContactsResponse, Contact> ComputeContacts(ComputeContactsRequest request, CallSettings callSettings = null)

Lists all contacts for the resource that are subscribed to the specified notification categories, including contacts inherited from any parent resources.

Parameters
Name Description
request ComputeContactsRequest

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
PagedEnumerableComputeContactsResponseContact

A pageable sequence of Contact resources.

Overrides

ComputeContactsAsync(ComputeContactsRequest, CallSettings)

public override PagedAsyncEnumerable<ComputeContactsResponse, Contact> ComputeContactsAsync(ComputeContactsRequest request, CallSettings callSettings = null)

Lists all contacts for the resource that are subscribed to the specified notification categories, including contacts inherited from any parent resources.

Parameters
Name Description
request ComputeContactsRequest

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
PagedAsyncEnumerableComputeContactsResponseContact

A pageable asynchronous sequence of Contact resources.

Overrides

CreateContact(CreateContactRequest, CallSettings)

public override Contact CreateContact(CreateContactRequest request, CallSettings callSettings = null)

Adds a new contact for a resource.

Parameters
Name Description
request CreateContactRequest

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)

public override Task<Contact> CreateContactAsync(CreateContactRequest request, CallSettings callSettings = null)

Adds a new contact for a resource.

Parameters
Name Description
request CreateContactRequest

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
TaskContact

A Task containing the RPC response.

Overrides

DeleteContact(DeleteContactRequest, CallSettings)

public override void DeleteContact(DeleteContactRequest request, CallSettings callSettings = null)

Deletes a contact.

Parameters
Name Description
request DeleteContactRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Overrides

DeleteContactAsync(DeleteContactRequest, CallSettings)

public override Task DeleteContactAsync(DeleteContactRequest request, CallSettings callSettings = null)

Deletes a contact.

Parameters
Name Description
request DeleteContactRequest

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

A Task containing the RPC response.

Overrides

GetContact(GetContactRequest, CallSettings)

public override Contact GetContact(GetContactRequest request, CallSettings callSettings = null)

Gets a single contact.

Parameters
Name Description
request GetContactRequest

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)

public override Task<Contact> GetContactAsync(GetContactRequest request, CallSettings callSettings = null)

Gets a single contact.

Parameters
Name Description
request GetContactRequest

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
TaskContact

A Task containing the RPC response.

Overrides

ListContacts(ListContactsRequest, CallSettings)

public override PagedEnumerable<ListContactsResponse, Contact> ListContacts(ListContactsRequest request, CallSettings callSettings = null)

Lists the contacts that have been set on a resource.

Parameters
Name Description
request ListContactsRequest

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
PagedEnumerableListContactsResponseContact

A pageable sequence of Contact resources.

Overrides

ListContactsAsync(ListContactsRequest, CallSettings)

public override PagedAsyncEnumerable<ListContactsResponse, Contact> ListContactsAsync(ListContactsRequest request, CallSettings callSettings = null)

Lists the contacts that have been set on a resource.

Parameters
Name Description
request ListContactsRequest

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
PagedAsyncEnumerableListContactsResponseContact

A pageable asynchronous sequence of Contact resources.

Overrides

SendTestMessage(SendTestMessageRequest, CallSettings)

public override void SendTestMessage(SendTestMessageRequest request, CallSettings callSettings = null)

Allows a contact admin to send a test message to contact to verify that it has been configured correctly.

Parameters
Name Description
request SendTestMessageRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Overrides

SendTestMessageAsync(SendTestMessageRequest, CallSettings)

public override Task SendTestMessageAsync(SendTestMessageRequest request, CallSettings callSettings = null)

Allows a contact admin to send a test message to contact to verify that it has been configured correctly.

Parameters
Name Description
request SendTestMessageRequest

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

A Task containing the RPC response.

Overrides

UpdateContact(UpdateContactRequest, CallSettings)

public override Contact UpdateContact(UpdateContactRequest request, CallSettings callSettings = null)

Updates a contact. Note: A contact's email address cannot be changed.

Parameters
Name Description
request UpdateContactRequest

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)

public override Task<Contact> UpdateContactAsync(UpdateContactRequest request, CallSettings callSettings = null)

Updates a contact. Note: A contact's email address cannot be changed.

Parameters
Name Description
request UpdateContactRequest

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
TaskContact

A Task containing the RPC response.

Overrides