Essential Contacts v1 API - Class EssentialContactsService.EssentialContactsServiceBase (2.5.0)

[BindServiceMethod(typeof(EssentialContactsService), "BindService")]
public abstract class EssentialContactsService.EssentialContactsServiceBase

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

Base class for server-side implementations of EssentialContactsService

Inheritance

object > EssentialContactsService.EssentialContactsServiceBase

Namespace

Google.Cloud.EssentialContacts.V1

Assembly

Google.Cloud.EssentialContacts.V1.dll

Methods

ComputeContacts(ComputeContactsRequest, ServerCallContext)

public virtual Task<ComputeContactsResponse> ComputeContacts(ComputeContactsRequest request, ServerCallContext context)

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 received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskComputeContactsResponse

The response to send back to the client (wrapped by a task).

CreateContact(CreateContactRequest, ServerCallContext)

public virtual Task<Contact> CreateContact(CreateContactRequest request, ServerCallContext context)

Adds a new contact for a resource.

Parameters
Name Description
request CreateContactRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskContact

The response to send back to the client (wrapped by a task).

DeleteContact(DeleteContactRequest, ServerCallContext)

public virtual Task<Empty> DeleteContact(DeleteContactRequest request, ServerCallContext context)

Deletes a contact.

Parameters
Name Description
request DeleteContactRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskEmpty

The response to send back to the client (wrapped by a task).

GetContact(GetContactRequest, ServerCallContext)

public virtual Task<Contact> GetContact(GetContactRequest request, ServerCallContext context)

Gets a single contact.

Parameters
Name Description
request GetContactRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskContact

The response to send back to the client (wrapped by a task).

ListContacts(ListContactsRequest, ServerCallContext)

public virtual Task<ListContactsResponse> ListContacts(ListContactsRequest request, ServerCallContext context)

Lists the contacts that have been set on a resource.

Parameters
Name Description
request ListContactsRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskListContactsResponse

The response to send back to the client (wrapped by a task).

SendTestMessage(SendTestMessageRequest, ServerCallContext)

public virtual Task<Empty> SendTestMessage(SendTestMessageRequest request, ServerCallContext context)

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 received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskEmpty

The response to send back to the client (wrapped by a task).

UpdateContact(UpdateContactRequest, ServerCallContext)

public virtual Task<Contact> UpdateContact(UpdateContactRequest request, ServerCallContext context)

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

Parameters
Name Description
request UpdateContactRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskContact

The response to send back to the client (wrapped by a task).