#!/bin/bash

# Rename the services to {Publisher/Subscriber}ServiceApi
sed -i 's/service Publisher/service PublisherServiceApi/g' $GOOGLEAPIS/google/pubsub/v1/pubsub.proto
sed -i 's/v1.Publisher/v2.PublisherServiceApi/g' $GOOGLEAPIS/google/pubsub/v1/pubsub_grpc_service_config.json

sed -i 's/service Subscriber/service SubscriberServiceApi/g' $GOOGLEAPIS/google/pubsub/v1/pubsub.proto
sed -i 's/v1.Subscriber/v2.SubscriberServiceApi/g' $GOOGLEAPIS/google/pubsub/v1/pubsub_grpc_service_config.json

#!/bin/bash

# Rename the services to {Publisher/Subscriber}ServiceApi
sed -i 's/service Publisher/service PublisherServiceApi/g' $GOOGLEAPIS/google/pubsub/v1/pubsub.proto
sed -i 's/v1.Publisher/v1.PublisherServiceApi/g' $GOOGLEAPIS/google/pubsub/v1/pubsub_grpc_service_config.json

sed -i 's/service Subscriber/service SubscriberServiceApi/g' $GOOGLEAPIS/google/pubsub/v1/pubsub.proto
sed -i 's/v1.Subscriber/v1.SubscriberServiceApi/g' $GOOGLEAPIS/google/pubsub/v1/pubsub_grpc_service_config.json

Fix middle-of-generation PubSub config change
Fix middle-of-generation PubSub config change

(There's no reason to be changing the service version, and that
messes up retry.)
