Class EssentialContactsService.EssentialContactsServiceClient (2.0.0)

public class EssentialContactsServiceClient : ClientBase<EssentialContactsService.EssentialContactsServiceClient>

Client for EssentialContactsService

Inheritance

Object > ClientBase > ClientBase<EssentialContactsService.EssentialContactsServiceClient> > EssentialContactsService.EssentialContactsServiceClient

Namespace

Google.Cloud.EssentialContacts.V1

Assembly

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

The callInvoker to use to make remote calls.

EssentialContactsServiceClient(ChannelBase)

public EssentialContactsServiceClient(ChannelBase channel)

Creates a new client for EssentialContactsService

Parameter
NameDescription
channelChannelBase

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
NameDescription
configurationClientBase.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
NameDescription
requestComputeContactsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ComputeContactsResponse

The response received from the server.

ComputeContacts(ComputeContactsRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual ComputeContactsResponse ComputeContacts(ComputeContactsRequest request, Metadata headers = null, DateTime? deadline = null, 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
NameDescription
requestComputeContactsRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestComputeContactsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<ComputeContactsResponse>

The call object.

ComputeContactsAsync(ComputeContactsRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<ComputeContactsResponse> ComputeContactsAsync(ComputeContactsRequest request, Metadata headers = null, DateTime? deadline = null, 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
NameDescription
requestComputeContactsRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<ComputeContactsResponse>

The call object.

CreateContact(CreateContactRequest, CallOptions)

public virtual Contact CreateContact(CreateContactRequest request, CallOptions options)

Adds a new contact for a resource.

Parameters
NameDescription
requestCreateContactRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Contact

The response received from the server.

CreateContact(CreateContactRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Contact CreateContact(CreateContactRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Adds a new contact for a resource.

Parameters
NameDescription
requestCreateContactRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

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

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Contact>

The call object.

CreateContactAsync(CreateContactRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Contact> CreateContactAsync(CreateContactRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Adds a new contact for a resource.

Parameters
NameDescription
requestCreateContactRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Contact>

The call object.

DeleteContact(DeleteContactRequest, CallOptions)

public virtual Empty DeleteContact(DeleteContactRequest request, CallOptions options)

Deletes a contact.

Parameters
NameDescription
requestDeleteContactRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Empty

The response received from the server.

DeleteContact(DeleteContactRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Empty DeleteContact(DeleteContactRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Deletes a contact.

Parameters
NameDescription
requestDeleteContactRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Empty

The response received from the server.

DeleteContactAsync(DeleteContactRequest, CallOptions)

public virtual AsyncUnaryCall<Empty> DeleteContactAsync(DeleteContactRequest request, CallOptions options)

Deletes a contact.

Parameters
NameDescription
requestDeleteContactRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Empty>

The call object.

DeleteContactAsync(DeleteContactRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Empty> DeleteContactAsync(DeleteContactRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Deletes a contact.

Parameters
NameDescription
requestDeleteContactRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Empty>

The call object.

GetContact(GetContactRequest, CallOptions)

public virtual Contact GetContact(GetContactRequest request, CallOptions options)

Gets a single contact.

Parameters
NameDescription
requestGetContactRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Contact

The response received from the server.

GetContact(GetContactRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Contact GetContact(GetContactRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Gets a single contact.

Parameters
NameDescription
requestGetContactRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Contact

The response received from the server.

GetContactAsync(GetContactRequest, CallOptions)

public virtual AsyncUnaryCall<Contact> GetContactAsync(GetContactRequest request, CallOptions options)

Gets a single contact.

Parameters
NameDescription
requestGetContactRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Contact>

The call object.

GetContactAsync(GetContactRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Contact> GetContactAsync(GetContactRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Gets a single contact.

Parameters
NameDescription
requestGetContactRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

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

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ListContactsResponse

The response received from the server.

ListContacts(ListContactsRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual ListContactsResponse ListContacts(ListContactsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Lists the contacts that have been set on a resource.

Parameters
NameDescription
requestListContactsRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

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

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<ListContactsResponse>

The call object.

ListContactsAsync(ListContactsRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<ListContactsResponse> ListContactsAsync(ListContactsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Lists the contacts that have been set on a resource.

Parameters
NameDescription
requestListContactsRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
configurationClientBase.ClientBaseConfiguration
Returns
TypeDescription
EssentialContactsService.EssentialContactsServiceClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.EssentialContacts.V1.EssentialContactsService.EssentialContactsServiceClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

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

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Empty

The response received from the server.

SendTestMessage(SendTestMessageRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Empty SendTestMessage(SendTestMessageRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Allows a contact admin to send a test message to contact to verify that it has been configured correctly.

Parameters
NameDescription
requestSendTestMessageRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

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

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Empty>

The call object.

SendTestMessageAsync(SendTestMessageRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Empty> SendTestMessageAsync(SendTestMessageRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Allows a contact admin to send a test message to contact to verify that it has been configured correctly.

Parameters
NameDescription
requestSendTestMessageRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

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

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Contact

The response received from the server.

UpdateContact(UpdateContactRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Contact UpdateContact(UpdateContactRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Updates a contact. Note: A contact's email address cannot be changed.

Parameters
NameDescription
requestUpdateContactRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

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

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Contact>

The call object.

UpdateContactAsync(UpdateContactRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Contact> UpdateContactAsync(UpdateContactRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Updates a contact. Note: A contact's email address cannot be changed.

Parameters
NameDescription
requestUpdateContactRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Contact>

The call object.