Class EssentialContactsServiceConnection (2.19.0)

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
TypeDescription
Options

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

Parameter
NameDescription
request google::cloud::essentialcontacts::v1::CreateContactRequest const &
Returns
TypeDescription
StatusOr< google::cloud::essentialcontacts::v1::Contact >

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

Parameter
NameDescription
request google::cloud::essentialcontacts::v1::UpdateContactRequest const &
Returns
TypeDescription
StatusOr< google::cloud::essentialcontacts::v1::Contact >

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

Parameter
NameDescription
request google::cloud::essentialcontacts::v1::ListContactsRequest
Returns
TypeDescription
StreamRange< google::cloud::essentialcontacts::v1::Contact >

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

Parameter
NameDescription
request google::cloud::essentialcontacts::v1::GetContactRequest const &
Returns
TypeDescription
StatusOr< google::cloud::essentialcontacts::v1::Contact >

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

Parameter
NameDescription
request google::cloud::essentialcontacts::v1::DeleteContactRequest const &
Returns
TypeDescription
Status

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

Parameter
NameDescription
request google::cloud::essentialcontacts::v1::ComputeContactsRequest
Returns
TypeDescription
StreamRange< google::cloud::essentialcontacts::v1::Contact >

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

Parameter
NameDescription
request google::cloud::essentialcontacts::v1::SendTestMessageRequest const &
Returns
TypeDescription
Status