# Essential Contacts v1 API - Class EssentialContactsService.EssentialContactsServiceBase (2.6.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.6.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EssentialContacts.V1/latest/Google.Cloud.EssentialContacts.V1.EssentialContactsService.EssentialContactsServiceBase)
- [2.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EssentialContacts.V1/2.5.0/Google.Cloud.EssentialContacts.V1.EssentialContactsService.EssentialContactsServiceBase)
- [2.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EssentialContacts.V1/2.4.0/Google.Cloud.EssentialContacts.V1.EssentialContactsService.EssentialContactsServiceBase)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EssentialContacts.V1/2.3.0/Google.Cloud.EssentialContacts.V1.EssentialContactsService.EssentialContactsServiceBase)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EssentialContacts.V1/2.2.0/Google.Cloud.EssentialContacts.V1.EssentialContactsService.EssentialContactsServiceBase)
- [2.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EssentialContacts.V1/2.1.0/Google.Cloud.EssentialContacts.V1.EssentialContactsService.EssentialContactsServiceBase)
- [2.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EssentialContacts.V1/2.0.0/Google.Cloud.EssentialContacts.V1.EssentialContactsService.EssentialContactsServiceBase)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EssentialContacts.V1/1.1.0/Google.Cloud.EssentialContacts.V1.EssentialContactsService.EssentialContactsServiceBase)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EssentialContacts.V1/1.0.0/Google.Cloud.EssentialContacts.V1.EssentialContactsService.EssentialContactsServiceBase)

    [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](https://learn.microsoft.com/dotnet/api/system.object) \> EssentialContactsService.EssentialContactsServiceBase

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.EssentialContacts.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EssentialContacts.V1/latest/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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EssentialContacts.V1/latest/Google.Cloud.EssentialContacts.V1.ComputeContactsRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EssentialContacts.V1/latest/Google.Cloud.EssentialContacts.V1.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** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EssentialContacts.V1/latest/Google.Cloud.EssentialContacts.V1.CreateContactRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EssentialContacts.V1/latest/Google.Cloud.EssentialContacts.V1.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** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EssentialContacts.V1/latest/Google.Cloud.EssentialContacts.V1.DeleteContactRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.html` | 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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EssentialContacts.V1/latest/Google.Cloud.EssentialContacts.V1.GetContactRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EssentialContacts.V1/latest/Google.Cloud.EssentialContacts.V1.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** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EssentialContacts.V1/latest/Google.Cloud.EssentialContacts.V1.ListContactsRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EssentialContacts.V1/latest/Google.Cloud.EssentialContacts.V1.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** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EssentialContacts.V1/latest/Google.Cloud.EssentialContacts.V1.SendTestMessageRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.html` | 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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EssentialContacts.V1/latest/Google.Cloud.EssentialContacts.V1.UpdateContactRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EssentialContacts.V1/latest/Google.Cloud.EssentialContacts.V1.Contact` | The response to send back to the client (wrapped by a task). |