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\u003eThis page provides documentation for the \u003ccode\u003eSubscriber\u003c/code\u003e class within the Google Cloud Pub/Sub v1 API, specifically for the .NET environment, showcasing versions ranging from 2.3.0 to the latest 3.23.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSubscriber\u003c/code\u003e class is central to managing subscriptions and consuming messages, offering functionalities such as the \u003ccode\u003ePull\u003c/code\u003e method and the \u003ccode\u003eStreamingPull\u003c/code\u003e method for message retrieval.\u003c/p\u003e\n"],["\u003cp\u003eThe page details how to create service definitions and register service methods using \u003ccode\u003eBindService\u003c/code\u003e, allowing for server-side handling logic via a \u003ccode\u003eSubscriberBase\u003c/code\u003e implementation.\u003c/p\u003e\n"],["\u003cp\u003eIt contains information about inherited members, including \u003ccode\u003eGetHashCode\u003c/code\u003e, \u003ccode\u003eGetType\u003c/code\u003e, \u003ccode\u003eMemberwiseClone\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e from the base \u003ccode\u003eobject\u003c/code\u003e class, as well as showing the associated namespace \u003ccode\u003eGoogle.Cloud.PubSub.V1\u003c/code\u003e and assembly \u003ccode\u003eGoogle.Cloud.PubSub.V1.dll\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation is focused on the .NET environment and references the \u003ccode\u003eGrpc.Core\u003c/code\u003e library for service binding, and also links to related pages for more context such as \u003ccode\u003eSubscriberBase\u003c/code\u003e and \u003ccode\u003eServerServiceDefinition\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]