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

[BindServiceMethod(typeof(EssentialContactsService), "BindService")]
public abstract class 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
NameDescription
requestComputeContactsRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<ComputeContactsResponse>

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Contact>

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Empty>

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Contact>

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<ListContactsResponse>

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Empty>

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Contact>

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