Class RealmsServiceConnection (2.11.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
Type Description
Options

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

Parameter
Name Description
request google::cloud::gaming::v1::ListRealmsRequest
Returns
Type Description
StreamRange< google::cloud::gaming::v1::Realm >

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

Parameter
Name Description
request google::cloud::gaming::v1::GetRealmRequest const &
Returns
Type Description
StatusOr< google::cloud::gaming::v1::Realm >

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

Parameter
Name Description
request google::cloud::gaming::v1::CreateRealmRequest const &
Returns
Type Description
future< StatusOr< google::cloud::gaming::v1::Realm > >

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

Parameter
Name Description
request google::cloud::gaming::v1::DeleteRealmRequest const &
Returns
Type Description
future< StatusOr< google::cloud::gaming::v1::OperationMetadata > >

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

Parameter
Name Description
request google::cloud::gaming::v1::UpdateRealmRequest const &
Returns
Type Description
future< StatusOr< google::cloud::gaming::v1::Realm > >

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

Parameter
Name Description
request google::cloud::gaming::v1::PreviewRealmUpdateRequest const &
Returns
Type Description
StatusOr< google::cloud::gaming::v1::PreviewRealmUpdateResponse >