[BindServiceMethod(typeof(EssentialContactsService), "BindService")]
public abstract class 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 | ComputeContactsRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
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 |
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 | |
---|---|
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 |
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 | |
---|---|
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 |
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 | |
---|---|
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 |
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 | |
---|---|
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 |
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 | |
---|---|
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 |
Task<Contact> | The response to send back to the client (wrapped by a task). |