From 7f47d894837ac1701ee555fd5c3d70e5d4a796b1 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Fri, 22 Sep 2017 16:02:02 -0700 Subject: [PATCH] Synchronize new proto changes. --- google/pubsub/v1beta2/README.md | 20 -------------------- google/rpc/rpc_publish.yaml | 2 +- 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/google/pubsub/v1beta2/README.md b/google/pubsub/v1beta2/README.md index 120a8182..bc2f6037 100644 --- a/google/pubsub/v1beta2/README.md +++ b/google/pubsub/v1beta2/README.md @@ -92,26 +92,6 @@ subscription.push_config().set_push_endpoint("machinename:8888"); Subscriber.CreateSubscription(subscription); ``` -Consuming messages via push: - -```data -// The port 'machinename:8888' must be bound to a stubby server that -// implements the PushEndpointService with the following method. -// (This example assumes the push endpoint has a single subscription -// called "subName", though in general a single push endpoint might -// have multiple subscriptions.) - -int ProcessPushMessage( - ProcessPushMessageRequest request, - ProcessPushMessageResponse *response) { - if (request.subscription().equals("subscriptionName")) { - Process(request.message().data()); - } - *response = ProcessPushMessageResponse.default(); - return OK; // This return code implies an acknowledgment -} -``` - Consuming messages via pull: ```data diff --git a/google/rpc/rpc_publish.yaml b/google/rpc/rpc_publish.yaml index c85a64df..ea91204f 100644 --- a/google/rpc/rpc_publish.yaml +++ b/google/rpc/rpc_publish.yaml @@ -19,7 +19,7 @@ enums: - name: google.rpc.Code documentation: - summary: Defines RPC types for Stubby services. + summary: Defines RPC types. overview: |- # Google RPC