Essential Contacts v1 API - Class EssentialContactsServiceClientImpl (2.3.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
NameDescription
grpcClientEssentialContactsServiceEssentialContactsServiceClient

The underlying gRPC client.

settingsEssentialContactsServiceSettings

The base EssentialContactsServiceSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override EssentialContactsService.EssentialContactsServiceClient GrpcClient { get; }

The underlying gRPC EssentialContactsService client

Property Value
TypeDescription
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
NameDescription
requestComputeContactsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestComputeContactsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestCreateContactRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestCreateContactRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskContact

A Task containing the RPC response.

Overrides

DeleteContact(DeleteContactRequest, CallSettings)

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

Deletes a contact.

Parameters
NameDescription
requestDeleteContactRequest

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

callSettingsCallSettings

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
NameDescription
requestDeleteContactRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetContactRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Contact

The RPC response.

Overrides

GetContactAsync(GetContactRequest, CallSettings)

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

Gets a single contact.

Parameters
NameDescription
requestGetContactRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListContactsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListContactsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestSendTestMessageRequest

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

callSettingsCallSettings

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
NameDescription
requestSendTestMessageRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestUpdateContactRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestUpdateContactRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskContact

A Task containing the RPC response.

Overrides