Class EssentialContactsServiceConnection (2.31.0-rc)

This interface defines virtual methods for each of the user-facing overload sets in EssentialContactsServiceClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type EssentialContactsServiceClient.

To create a concrete instance, see MakeEssentialContactsServiceConnection().

For mocking, see essentialcontacts_v1_mocks::MockEssentialContactsServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual CreateContact(google::cloud::essentialcontacts::v1::CreateContactRequest const &)

Parameter
Name Description
request google::cloud::essentialcontacts::v1::CreateContactRequest const &
Returns
Type Description
StatusOr< google::cloud::essentialcontacts::v1::Contact >

virtual UpdateContact(google::cloud::essentialcontacts::v1::UpdateContactRequest const &)

Parameter
Name Description
request google::cloud::essentialcontacts::v1::UpdateContactRequest const &
Returns
Type Description
StatusOr< google::cloud::essentialcontacts::v1::Contact >

virtual ListContacts(google::cloud::essentialcontacts::v1::ListContactsRequest)

Parameter
Name Description
request google::cloud::essentialcontacts::v1::ListContactsRequest
Returns
Type Description
StreamRange< google::cloud::essentialcontacts::v1::Contact >

virtual GetContact(google::cloud::essentialcontacts::v1::GetContactRequest const &)

Parameter
Name Description
request google::cloud::essentialcontacts::v1::GetContactRequest const &
Returns
Type Description
StatusOr< google::cloud::essentialcontacts::v1::Contact >

virtual DeleteContact(google::cloud::essentialcontacts::v1::DeleteContactRequest const &)

Parameter
Name Description
request google::cloud::essentialcontacts::v1::DeleteContactRequest const &
Returns
Type Description
Status

virtual ComputeContacts(google::cloud::essentialcontacts::v1::ComputeContactsRequest)

Parameter
Name Description
request google::cloud::essentialcontacts::v1::ComputeContactsRequest
Returns
Type Description
StreamRange< google::cloud::essentialcontacts::v1::Contact >

virtual SendTestMessage(google::cloud::essentialcontacts::v1::SendTestMessageRequest const &)

Parameter
Name Description
request google::cloud::essentialcontacts::v1::SendTestMessageRequest const &
Returns
Type Description
Status