Class RealmsServiceConnection (2.12.0)

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

To create a concrete instance, see MakeRealmsServiceConnection().

For mocking, see gameservices_v1_mocks::MockRealmsServiceConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual ListRealms(google::cloud::gaming::v1::ListRealmsRequest)

Parameter
NameDescription
request google::cloud::gaming::v1::ListRealmsRequest
Returns
TypeDescription
StreamRange< google::cloud::gaming::v1::Realm >

virtual GetRealm(google::cloud::gaming::v1::GetRealmRequest const &)

Parameter
NameDescription
request google::cloud::gaming::v1::GetRealmRequest const &
Returns
TypeDescription
StatusOr< google::cloud::gaming::v1::Realm >

virtual CreateRealm(google::cloud::gaming::v1::CreateRealmRequest const &)

Parameter
NameDescription
request google::cloud::gaming::v1::CreateRealmRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::gaming::v1::Realm > >

virtual DeleteRealm(google::cloud::gaming::v1::DeleteRealmRequest const &)

Parameter
NameDescription
request google::cloud::gaming::v1::DeleteRealmRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::gaming::v1::OperationMetadata > >

virtual UpdateRealm(google::cloud::gaming::v1::UpdateRealmRequest const &)

Parameter
NameDescription
request google::cloud::gaming::v1::UpdateRealmRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::gaming::v1::Realm > >

virtual PreviewRealmUpdate(google::cloud::gaming::v1::PreviewRealmUpdateRequest const &)

Parameter
NameDescription
request google::cloud::gaming::v1::PreviewRealmUpdateRequest const &
Returns
TypeDescription
StatusOr< google::cloud::gaming::v1::PreviewRealmUpdateResponse >