Reference documentation and code samples for the Cloud Pub/Sub v1 API class Subscriber.
The service that an application uses to manipulate subscriptions and to
consume messages from a subscription via the Pull method or by
establishing a bi-directional stream using the StreamingPull method.
public static void BindService(ServiceBinderBase serviceBinder, Subscriber.SubscriberBase 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 latest version available for the Google.Cloud.PubSub.V1 Subscriber class is 3.23.0, with a variety of previous versions listed, ranging down to 2.3.0.\u003c/p\u003e\n"],["\u003cp\u003eThe Subscriber class, part of the Cloud Pub/Sub v1 API, is used for managing subscriptions and consuming messages, using methods like \u003ccode\u003ePull\u003c/code\u003e and \u003ccode\u003eStreamingPull\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe Subscriber class inherits members from the \u003ccode\u003eobject\u003c/code\u003e class such as \u003ccode\u003eGetHashCode\u003c/code\u003e, \u003ccode\u003eGetType\u003c/code\u003e, \u003ccode\u003eMemberwiseClone\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides methods like \u003ccode\u003eBindService\u003c/code\u003e to create a service definition that can be registered with a server, and a second overloaded \u003ccode\u003eBindService\u003c/code\u003e to register the method with a service binder.\u003c/p\u003e\n"],["\u003cp\u003eThe name space that this Subscriber class is in is \u003ccode\u003eGoogle.Cloud.PubSub.V1\u003c/code\u003e, and is a part of the \u003ccode\u003eGoogle.Cloud.PubSub.V1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,[]]