Reference documentation and code samples for the Cloud Functions v2 API class FunctionService.
Google Cloud Functions is used to deploy functions that are executed by
Google in response to various events. Data connected with that event is
passed to a function as the input data.
A function is a resource which describes a function that should be
executed and how it is triggered.
public static void BindService(ServiceBinderBase serviceBinder, FunctionService.FunctionServiceBase 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"]],[["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-09-09 UTC."],[[["\u003cp\u003eThe latest version of the Google Cloud Functions v2 API class FunctionService is 1.7.0.\u003c/p\u003e\n"],["\u003cp\u003eGoogle Cloud Functions is used to deploy and execute functions in response to events, with event data being passed as input.\u003c/p\u003e\n"],["\u003cp\u003eA function, within the context of Google Cloud Functions, is a resource that outlines the function to be executed and its trigger mechanism.\u003c/p\u003e\n"],["\u003cp\u003eThe FunctionService class, which inherits from the base object class, contains the \u003ccode\u003eBindService\u003c/code\u003e methods to create a service definition or bind service methods, using a \u003ccode\u003eFunctionServiceBase\u003c/code\u003e implementation for server-side logic.\u003c/p\u003e\n"],["\u003cp\u003eThe class is part of the \u003ccode\u003eGoogle.Cloud.Functions.V2\u003c/code\u003e namespace and the \u003ccode\u003eGoogle.Cloud.Functions.V2.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,["# Cloud Functions v2 API - Class FunctionService (1.7.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.7.0 (latest)](/dotnet/docs/reference/Google.Cloud.Functions.V2/latest/Google.Cloud.Functions.V2.FunctionService)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.Functions.V2/1.6.0/Google.Cloud.Functions.V2.FunctionService)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.Functions.V2/1.5.0/Google.Cloud.Functions.V2.FunctionService)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.Functions.V2/1.4.0/Google.Cloud.Functions.V2.FunctionService)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Functions.V2/1.3.0/Google.Cloud.Functions.V2.FunctionService)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Functions.V2/1.2.0/Google.Cloud.Functions.V2.FunctionService)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Functions.V2/1.1.0/Google.Cloud.Functions.V2.FunctionService)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Functions.V2/1.0.0/Google.Cloud.Functions.V2.FunctionService) \n\n public static class FunctionService\n\nReference documentation and code samples for the Cloud Functions v2 API class FunctionService.\n\nGoogle Cloud Functions is used to deploy functions that are executed by\nGoogle in response to various events. Data connected with that event is\npassed to a function as the input data.\n\nA **function** is a resource which describes a function that should be\nexecuted and how it is triggered. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e FunctionService \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Functions.V2](/dotnet/docs/reference/Google.Cloud.Functions.V2/latest/Google.Cloud.Functions.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.Functions.V2.dll\n\nMethods\n-------\n\n### BindService(FunctionServiceBase)\n\n public static ServerServiceDefinition BindService(FunctionService.FunctionServiceBase serviceImpl)\n\nCreates service definition that can be registered with a server\n\n### BindService(ServiceBinderBase, FunctionServiceBase)\n\n public static void BindService(ServiceBinderBase serviceBinder, FunctionService.FunctionServiceBase serviceImpl)\n\nRegister service method with a service binder with or without implementation. Useful when customizing the service binding logic.\nNote: this method is part of an experimental API that can change or be removed without any prior notice."]]