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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eRealmsServiceConnection\u003c/code\u003e object is used in conjunction with \u003ccode\u003eRealmsServiceClient\u003c/code\u003e to interact with the Google Cloud Game Services API, defining virtual methods for user-facing overload sets.\u003c/p\u003e\n"],["\u003cp\u003eThis interface enables custom behavior injection, like using a Google Mock object, during testing of \u003ccode\u003eRealmsServiceClient\u003c/code\u003e objects.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMakeRealmsServiceConnection()\u003c/code\u003e function allows the creation of concrete instances of the \u003ccode\u003eRealmsServiceConnection\u003c/code\u003e, while \u003ccode\u003egameservices_v1_mocks::MockRealmsServiceConnection\u003c/code\u003e is available for mocking purposes.\u003c/p\u003e\n"],["\u003cp\u003eThe interface provides virtual functions like \u003ccode\u003eListRealms\u003c/code\u003e, \u003ccode\u003eGetRealm\u003c/code\u003e, \u003ccode\u003eCreateRealm\u003c/code\u003e, \u003ccode\u003eDeleteRealm\u003c/code\u003e, \u003ccode\u003eUpdateRealm\u003c/code\u003e, and \u003ccode\u003ePreviewRealmUpdate\u003c/code\u003e to perform various operations on realms, each accepting a specific request parameter and having a defined return type.\u003c/p\u003e\n"]]],[],null,["# Class RealmsServiceConnection (2.13.0-rc)\n\nVersion latestkeyboard_arrow_down\n\n- [2.13.0-rc (latest)](/cpp/docs/reference/gameservices/latest/classgoogle_1_1cloud_1_1gameservices__v1_1_1RealmsServiceConnection)\n- [2.12.0](/cpp/docs/reference/gameservices/2.12.0/classgoogle_1_1cloud_1_1gameservices__v1_1_1RealmsServiceConnection)\n- [2.11.0](/cpp/docs/reference/gameservices/2.11.0/classgoogle_1_1cloud_1_1gameservices__v1_1_1RealmsServiceConnection) \nThe [`RealmsServiceConnection`](/cpp/docs/reference/gameservices/latest/classgoogle_1_1cloud_1_1gameservices__v1_1_1RealmsServiceConnection) object for [`RealmsServiceClient`](/cpp/docs/reference/gameservices/latest/classgoogle_1_1cloud_1_1gameservices__v1_1_1RealmsServiceClient). \nThis interface defines virtual methods for each of the user-facing overload sets in [`RealmsServiceClient`](/cpp/docs/reference/gameservices/latest/classgoogle_1_1cloud_1_1gameservices__v1_1_1RealmsServiceClient). This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type [`RealmsServiceClient`](/cpp/docs/reference/gameservices/latest/classgoogle_1_1cloud_1_1gameservices__v1_1_1RealmsServiceClient).\n\nTo create a concrete instance, see [`MakeRealmsServiceConnection()`](/cpp/docs/reference/gameservices/latest/namespacegoogle_1_1cloud_1_1gameservices__v1).\n\nFor mocking, see [`gameservices_v1_mocks::MockRealmsServiceConnection`](/cpp/docs/reference/gameservices/latest/classgoogle_1_1cloud_1_1gameservices__v1__mocks_1_1MockRealmsServiceConnection).\n\nFunctions\n---------\n\n### virtual options()\n\n### virtual ListRealms(google::cloud::gaming::v1::ListRealmsRequest)\n\n### virtual GetRealm(google::cloud::gaming::v1::GetRealmRequest const \\&)\n\n### virtual CreateRealm(google::cloud::gaming::v1::CreateRealmRequest const \\&)\n\n### virtual DeleteRealm(google::cloud::gaming::v1::DeleteRealmRequest const \\&)\n\n### virtual UpdateRealm(google::cloud::gaming::v1::UpdateRealmRequest const \\&)\n\n### virtual PreviewRealmUpdate(google::cloud::gaming::v1::PreviewRealmUpdateRequest const \\&)"]]