[BindServiceMethod(typeof(EssentialContactsService), "BindService")]
public abstract class EssentialContactsService.EssentialContactsServiceBaseReference documentation and code samples for the Essential Contacts v1 API class EssentialContactsService.EssentialContactsServiceBase.
Base class for server-side implementations of EssentialContactsService
Namespace
Google.Cloud.EssentialContacts.V1Assembly
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 |
ComputeContactsRequestThe request received from the client. |
context |
ServerCallContextThe 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 |
CreateContactRequestThe request received from the client. |
context |
ServerCallContextThe 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 |
DeleteContactRequestThe request received from the client. |
context |
ServerCallContextThe 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 |
GetContactRequestThe request received from the client. |
context |
ServerCallContextThe 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 |
ListContactsRequestThe request received from the client. |
context |
ServerCallContextThe 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 |
SendTestMessageRequestThe request received from the client. |
context |
ServerCallContextThe 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 |
UpdateContactRequestThe request received from the client. |
context |
ServerCallContextThe 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). |