public class EssentialContactsServiceClient : ClientBase<EssentialContactsService.EssentialContactsServiceClient>
Client for EssentialContactsService
Inheritance
Object > ClientBase > ClientBase<EssentialContactsService.EssentialContactsServiceClient> > EssentialContactsService.EssentialContactsServiceClientNamespace
Google.Cloud.EssentialContacts.V1Assembly
Google.Cloud.EssentialContacts.V1.dll
Constructors
EssentialContactsServiceClient()
protected EssentialContactsServiceClient()
Protected parameterless constructor to allow creation of test doubles.
EssentialContactsServiceClient(CallInvoker)
public EssentialContactsServiceClient(CallInvoker callInvoker)
Creates a new client for EssentialContactsService that uses a custom CallInvoker
.
Parameter | |
---|---|
Name | Description |
callInvoker | CallInvoker The callInvoker to use to make remote calls. |
EssentialContactsServiceClient(ChannelBase)
public EssentialContactsServiceClient(ChannelBase channel)
Creates a new client for EssentialContactsService
Parameter | |
---|---|
Name | Description |
channel | ChannelBase The channel to use to make remote calls. |
EssentialContactsServiceClient(ClientBase.ClientBaseConfiguration)
protected EssentialContactsServiceClient(ClientBase.ClientBaseConfiguration configuration)
Protected constructor to allow creation of configured clients.
Parameter | |
---|---|
Name | Description |
configuration | ClientBase.ClientBaseConfiguration The client configuration. |
Methods
ComputeContacts(ComputeContactsRequest, CallOptions)
public virtual ComputeContactsResponse ComputeContacts(ComputeContactsRequest request, CallOptions options)
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 to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
ComputeContactsResponse | The response received from the server. |
ComputeContacts(ComputeContactsRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual ComputeContactsResponse ComputeContacts(ComputeContactsRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
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 to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
ComputeContactsResponse | The response received from the server. |
ComputeContactsAsync(ComputeContactsRequest, CallOptions)
public virtual AsyncUnaryCall<ComputeContactsResponse> ComputeContactsAsync(ComputeContactsRequest request, CallOptions options)
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 to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<ComputeContactsResponse> | The call object. |
ComputeContactsAsync(ComputeContactsRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<ComputeContactsResponse> ComputeContactsAsync(ComputeContactsRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
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 to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<ComputeContactsResponse> | The call object. |
CreateContact(CreateContactRequest, CallOptions)
public virtual Contact CreateContact(CreateContactRequest request, CallOptions options)
Adds a new contact for a resource.
Parameters | |
---|---|
Name | Description |
request | CreateContactRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Contact | The response received from the server. |
CreateContact(CreateContactRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Contact CreateContact(CreateContactRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Adds a new contact for a resource.
Parameters | |
---|---|
Name | Description |
request | CreateContactRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Contact | The response received from the server. |
CreateContactAsync(CreateContactRequest, CallOptions)
public virtual AsyncUnaryCall<Contact> CreateContactAsync(CreateContactRequest request, CallOptions options)
Adds a new contact for a resource.
Parameters | |
---|---|
Name | Description |
request | CreateContactRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Contact> | The call object. |
CreateContactAsync(CreateContactRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Contact> CreateContactAsync(CreateContactRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Adds a new contact for a resource.
Parameters | |
---|---|
Name | Description |
request | CreateContactRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Contact> | The call object. |
DeleteContact(DeleteContactRequest, CallOptions)
public virtual Empty DeleteContact(DeleteContactRequest request, CallOptions options)
Deletes a contact.
Parameters | |
---|---|
Name | Description |
request | DeleteContactRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Empty | The response received from the server. |
DeleteContact(DeleteContactRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Empty DeleteContact(DeleteContactRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Deletes a contact.
Parameters | |
---|---|
Name | Description |
request | DeleteContactRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Empty | The response received from the server. |
DeleteContactAsync(DeleteContactRequest, CallOptions)
public virtual AsyncUnaryCall<Empty> DeleteContactAsync(DeleteContactRequest request, CallOptions options)
Deletes a contact.
Parameters | |
---|---|
Name | Description |
request | DeleteContactRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Empty> | The call object. |
DeleteContactAsync(DeleteContactRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Empty> DeleteContactAsync(DeleteContactRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Deletes a contact.
Parameters | |
---|---|
Name | Description |
request | DeleteContactRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Empty> | The call object. |
GetContact(GetContactRequest, CallOptions)
public virtual Contact GetContact(GetContactRequest request, CallOptions options)
Gets a single contact.
Parameters | |
---|---|
Name | Description |
request | GetContactRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Contact | The response received from the server. |
GetContact(GetContactRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Contact GetContact(GetContactRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Gets a single contact.
Parameters | |
---|---|
Name | Description |
request | GetContactRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Contact | The response received from the server. |
GetContactAsync(GetContactRequest, CallOptions)
public virtual AsyncUnaryCall<Contact> GetContactAsync(GetContactRequest request, CallOptions options)
Gets a single contact.
Parameters | |
---|---|
Name | Description |
request | GetContactRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Contact> | The call object. |
GetContactAsync(GetContactRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Contact> GetContactAsync(GetContactRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Gets a single contact.
Parameters | |
---|---|
Name | Description |
request | GetContactRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Contact> | The call object. |
ListContacts(ListContactsRequest, CallOptions)
public virtual ListContactsResponse ListContacts(ListContactsRequest request, CallOptions options)
Lists the contacts that have been set on a resource.
Parameters | |
---|---|
Name | Description |
request | ListContactsRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
ListContactsResponse | The response received from the server. |
ListContacts(ListContactsRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual ListContactsResponse ListContacts(ListContactsRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Lists the contacts that have been set on a resource.
Parameters | |
---|---|
Name | Description |
request | ListContactsRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
ListContactsResponse | The response received from the server. |
ListContactsAsync(ListContactsRequest, CallOptions)
public virtual AsyncUnaryCall<ListContactsResponse> ListContactsAsync(ListContactsRequest request, CallOptions options)
Lists the contacts that have been set on a resource.
Parameters | |
---|---|
Name | Description |
request | ListContactsRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<ListContactsResponse> | The call object. |
ListContactsAsync(ListContactsRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<ListContactsResponse> ListContactsAsync(ListContactsRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Lists the contacts that have been set on a resource.
Parameters | |
---|---|
Name | Description |
request | ListContactsRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<ListContactsResponse> | The call object. |
NewInstance(ClientBase.ClientBaseConfiguration)
protected override EssentialContactsService.EssentialContactsServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Creates a new instance of client from given ClientBaseConfiguration
.
Parameter | |
---|---|
Name | Description |
configuration | ClientBase.ClientBaseConfiguration |
Returns | |
---|---|
Type | Description |
EssentialContactsService.EssentialContactsServiceClient |
SendTestMessage(SendTestMessageRequest, CallOptions)
public virtual Empty SendTestMessage(SendTestMessageRequest request, CallOptions options)
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 to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Empty | The response received from the server. |
SendTestMessage(SendTestMessageRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Empty SendTestMessage(SendTestMessageRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
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 to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Empty | The response received from the server. |
SendTestMessageAsync(SendTestMessageRequest, CallOptions)
public virtual AsyncUnaryCall<Empty> SendTestMessageAsync(SendTestMessageRequest request, CallOptions options)
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 to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Empty> | The call object. |
SendTestMessageAsync(SendTestMessageRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Empty> SendTestMessageAsync(SendTestMessageRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
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 to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Empty> | The call object. |
UpdateContact(UpdateContactRequest, CallOptions)
public virtual Contact UpdateContact(UpdateContactRequest request, CallOptions options)
Updates a contact. Note: A contact's email address cannot be changed.
Parameters | |
---|---|
Name | Description |
request | UpdateContactRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Contact | The response received from the server. |
UpdateContact(UpdateContactRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Contact UpdateContact(UpdateContactRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Updates a contact. Note: A contact's email address cannot be changed.
Parameters | |
---|---|
Name | Description |
request | UpdateContactRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Contact | The response received from the server. |
UpdateContactAsync(UpdateContactRequest, CallOptions)
public virtual AsyncUnaryCall<Contact> UpdateContactAsync(UpdateContactRequest request, CallOptions options)
Updates a contact. Note: A contact's email address cannot be changed.
Parameters | |
---|---|
Name | Description |
request | UpdateContactRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Contact> | The call object. |
UpdateContactAsync(UpdateContactRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Contact> UpdateContactAsync(UpdateContactRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Updates a contact. Note: A contact's email address cannot be changed.
Parameters | |
---|---|
Name | Description |
request | UpdateContactRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Contact> | The call object. |