From 54b394bd03f7491c280572f092d36881d652a102 Mon Sep 17 00:00:00 2001
From: Anthonios Partheniou <partheniou@google.com>
Date: Fri, 7 Oct 2022 17:59:39 -0400
Subject: [PATCH] fix(deps): allow protobuf 3.19.5 (#151)

* fix(deps): allow protobuf 3.19.5

* explicitly exclude protobuf 4.21.0
---
 packages/google-cloud-apigee-connect/setup.py                   | 2 +-
 .../google-cloud-apigee-connect/testing/constraints-3.7.txt     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/packages/google-cloud-apigee-connect/setup.py b/packages/google-cloud-apigee-connect/setup.py
index c47cb5bf4309..43db71bd676b 100644
--- a/packages/google-cloud-apigee-connect/setup.py
+++ b/packages/google-cloud-apigee-connect/setup.py
@@ -27,7 +27,7 @@
 dependencies = [
     "google-api-core[grpc] >= 1.32.0, <3.0.0dev,!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*",
     "proto-plus >= 1.22.0, <2.0.0dev",
-    "protobuf >= 3.20.2, <5.0.0dev",
+    "protobuf>=3.19.5,<5.0.0dev,!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5",
 ]
 
 package_root = os.path.abspath(os.path.dirname(__file__))
diff --git a/packages/google-cloud-apigee-connect/testing/constraints-3.7.txt b/packages/google-cloud-apigee-connect/testing/constraints-3.7.txt
index 260e08b9e419..5dcaa6fd1884 100644
--- a/packages/google-cloud-apigee-connect/testing/constraints-3.7.txt
+++ b/packages/google-cloud-apigee-connect/testing/constraints-3.7.txt
@@ -7,4 +7,4 @@
 # Then this file should have foo==1.14.0
 google-api-core==1.32.0
 proto-plus==1.22.0
-protobuf==3.20.2
+protobuf==3.19.5