Reference documentation and code samples for the Discovery Engine v1beta API class ControlService.
Service for performing CRUD operations on Controls.
Controls allow for custom logic to be implemented in the serving path.
Controls need to be attached to a Serving Config to be considered during a
request.
public static void BindService(ServiceBinderBase serviceBinder, ControlService.ControlServiceBase serviceImpl)
Register service method with a service binder with or without implementation. Useful when customizing the service binding logic.
Note: this method is part of an experimental API that can change or be removed without any prior notice.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eControlService\u003c/code\u003e class in the Discovery Engine v1beta API allows for CRUD operations on Controls, enabling custom logic in the serving path.\u003c/p\u003e\n"],["\u003cp\u003eControls must be attached to a Serving Config to be considered during a request, as stated by the documentation.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBindService\u003c/code\u003e method creates a service definition for server registration, taking a \u003ccode\u003eControlServiceBase\u003c/code\u003e implementation as a parameter.\u003c/p\u003e\n"],["\u003cp\u003eAnother \u003ccode\u003eBindService\u003c/code\u003e method enables registering service methods with or without implementation using a \u003ccode\u003eServiceBinderBase\u003c/code\u003e for customized binding.\u003c/p\u003e\n"],["\u003cp\u003eThe methods listed from the \u003ccode\u003eObject\u003c/code\u003e class are inherited by \u003ccode\u003eControlService\u003c/code\u003e, such as GetHashCode, GetType, MemberwiseClone and ToString.\u003c/p\u003e\n"]]],[],null,[]]