| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -90,7 +90,6 @@ | |||
| 90 | 90 | "ModifyPushConfigRequest", | |
| 91 | 91 | "PublishRequest", | |
| 92 | 92 | "PublishResponse", | |
| 93 | - "PublisherClient", | ||
| 94 | 93 | "PubsubMessage", | |
| 95 | 94 | "PullRequest", | |
| 96 | 95 | "PullResponse", | |
@@ -102,10 +101,11 @@ | |||
| 102 | 101 | "Snapshot", | |
| 103 | 102 | "StreamingPullRequest", | |
| 104 | 103 | "StreamingPullResponse", | |
| 104 | + "SubscriberClient", | ||
| 105 | 105 | "Subscription", | |
| 106 | 106 | "Topic", | |
| 107 | 107 | "UpdateSnapshotRequest", | |
| 108 | 108 | "UpdateSubscriptionRequest", | |
| 109 | 109 | "UpdateTopicRequest", | |
| 110 | - "SubscriberClient", | ||
| 110 | + "PublisherClient", | ||
| 111 | 111 | ) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -28,7 +28,6 @@ | |||
| 28 | 28 | _transport_registry["grpc"] = PublisherGrpcTransport | |
| 29 | 29 | _transport_registry["grpc_asyncio"] = PublisherGrpcAsyncIOTransport | |
| 30 | 30 | ||
| 31 | - | ||
| 32 | 31 | __all__ = ( | |
| 33 | 32 | "PublisherTransport", | |
| 34 | 33 | "PublisherGrpcTransport", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -150,6 +150,10 @@ def __init__( | |||
| 150 | 150 | ssl_credentials=ssl_credentials, | |
| 151 | 151 | scopes=scopes or self.AUTH_SCOPES, | |
| 152 | 152 | quota_project_id=quota_project_id, | |
| 153 | + options=[ | ||
| 154 | + ("grpc.max_send_message_length", -1), | ||
| 155 | + ("grpc.max_receive_message_length", -1), | ||
| 156 | + ], | ||
| 153 | 157 | ) | |
| 154 | 158 | self._ssl_channel_credentials = ssl_credentials | |
| 155 | 159 | else: | |
@@ -168,6 +172,10 @@ def __init__( | |||
| 168 | 172 | ssl_credentials=ssl_channel_credentials, | |
| 169 | 173 | scopes=scopes or self.AUTH_SCOPES, | |
| 170 | 174 | quota_project_id=quota_project_id, | |
| 175 | + options=[ | ||
| 176 | + ("grpc.max_send_message_length", -1), | ||
| 177 | + ("grpc.max_receive_message_length", -1), | ||
| 178 | + ], | ||
| 171 | 179 | ) | |
| 172 | 180 | ||
| 173 | 181 | self._stubs = {} # type: Dict[str, Callable] | |
@@ -194,7 +202,7 @@ def create_channel( | |||
| 194 | 202 | ) -> grpc.Channel: | |
| 195 | 203 | """Create and return a gRPC channel object. | |
| 196 | 204 | Args: | |
| 197 | - address (Optionsl[str]): The host for the channel to use. | ||
| 205 | + address (Optional[str]): The host for the channel to use. | ||
| 198 | 206 | credentials (Optional[~.Credentials]): The | |
| 199 | 207 | authorization credentials to attach to requests. These | |
| 200 | 208 | credentials identify this application to the service. If | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -195,6 +195,10 @@ def __init__( | |||
| 195 | 195 | ssl_credentials=ssl_credentials, | |
| 196 | 196 | scopes=scopes or self.AUTH_SCOPES, | |
| 197 | 197 | quota_project_id=quota_project_id, | |
| 198 | + options=[ | ||
| 199 | + ("grpc.max_send_message_length", -1), | ||
| 200 | + ("grpc.max_receive_message_length", -1), | ||
| 201 | + ], | ||
| 198 | 202 | ) | |
| 199 | 203 | self._ssl_channel_credentials = ssl_credentials | |
| 200 | 204 | else: | |
@@ -213,6 +217,10 @@ def __init__( | |||
| 213 | 217 | ssl_credentials=ssl_channel_credentials, | |
| 214 | 218 | scopes=scopes or self.AUTH_SCOPES, | |
| 215 | 219 | quota_project_id=quota_project_id, | |
| 220 | + options=[ | ||
| 221 | + ("grpc.max_send_message_length", -1), | ||
| 222 | + ("grpc.max_receive_message_length", -1), | ||
| 223 | + ], | ||
| 216 | 224 | ) | |
| 217 | 225 | ||
| 218 | 226 | # Run the base constructor. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -28,7 +28,6 @@ | |||
| 28 | 28 | _transport_registry["grpc"] = SubscriberGrpcTransport | |
| 29 | 29 | _transport_registry["grpc_asyncio"] = SubscriberGrpcAsyncIOTransport | |
| 30 | 30 | ||
| 31 | - | ||
| 32 | 31 | __all__ = ( | |
| 33 | 32 | "SubscriberTransport", | |
| 34 | 33 | "SubscriberGrpcTransport", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -152,6 +152,10 @@ def __init__( | |||
| 152 | 152 | ssl_credentials=ssl_credentials, | |
| 153 | 153 | scopes=scopes or self.AUTH_SCOPES, | |
| 154 | 154 | quota_project_id=quota_project_id, | |
| 155 | + options=[ | ||
| 156 | + ("grpc.max_send_message_length", -1), | ||
| 157 | + ("grpc.max_receive_message_length", -1), | ||
| 158 | + ], | ||
| 155 | 159 | ) | |
| 156 | 160 | self._ssl_channel_credentials = ssl_credentials | |
| 157 | 161 | else: | |
@@ -170,6 +174,10 @@ def __init__( | |||
| 170 | 174 | ssl_credentials=ssl_channel_credentials, | |
| 171 | 175 | scopes=scopes or self.AUTH_SCOPES, | |
| 172 | 176 | quota_project_id=quota_project_id, | |
| 177 | + options=[ | ||
| 178 | + ("grpc.max_send_message_length", -1), | ||
| 179 | + ("grpc.max_receive_message_length", -1), | ||
| 180 | + ], | ||
| 173 | 181 | ) | |
| 174 | 182 | ||
| 175 | 183 | self._stubs = {} # type: Dict[str, Callable] | |
@@ -196,7 +204,7 @@ def create_channel( | |||
| 196 | 204 | ) -> grpc.Channel: | |
| 197 | 205 | """Create and return a gRPC channel object. | |
| 198 | 206 | Args: | |
| 199 | - address (Optionsl[str]): The host for the channel to use. | ||
| 207 | + address (Optional[str]): The host for the channel to use. | ||
| 200 | 208 | credentials (Optional[~.Credentials]): The | |
| 201 | 209 | authorization credentials to attach to requests. These | |
| 202 | 210 | credentials identify this application to the service. If | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -197,6 +197,10 @@ def __init__( | |||
| 197 | 197 | ssl_credentials=ssl_credentials, | |
| 198 | 198 | scopes=scopes or self.AUTH_SCOPES, | |
| 199 | 199 | quota_project_id=quota_project_id, | |
| 200 | + options=[ | ||
| 201 | + ("grpc.max_send_message_length", -1), | ||
| 202 | + ("grpc.max_receive_message_length", -1), | ||
| 203 | + ], | ||
| 200 | 204 | ) | |
| 201 | 205 | self._ssl_channel_credentials = ssl_credentials | |
| 202 | 206 | else: | |
@@ -215,6 +219,10 @@ def __init__( | |||
| 215 | 219 | ssl_credentials=ssl_channel_credentials, | |
| 216 | 220 | scopes=scopes or self.AUTH_SCOPES, | |
| 217 | 221 | quota_project_id=quota_project_id, | |
| 222 | + options=[ | ||
| 223 | + ("grpc.max_send_message_length", -1), | ||
| 224 | + ("grpc.max_receive_message_length", -1), | ||
| 225 | + ], | ||
| 218 | 226 | ) | |
| 219 | 227 | ||
| 220 | 228 | # Run the base constructor. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -61,7 +61,6 @@ | |||
| 61 | 61 | SeekResponse, | |
| 62 | 62 | ) | |
| 63 | 63 | ||
| 64 | - | ||
| 65 | 64 | __all__ = ( | |
| 66 | 65 | "MessageStoragePolicy", | |
| 67 | 66 | "Topic", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,15 +4,15 @@ | |||
| 4 | 4 | "git": { | |
| 5 | 5 | "name": ".", | |
| 6 | 6 | "remote": "https://github.com/googleapis/python-pubsub.git", | |
| 7 | - "sha": "f3f4e5add32128bf238b2fbab3bcf0f5b23269d3" | ||
| 7 | + "sha": "258414727827e56d2678ada28b9bbd88b5c6aa6f" | ||
| 8 | 8 | } | |
| 9 | 9 | }, | |
| 10 | 10 | { | |
| 11 | 11 | "git": { | |
| 12 | 12 | "name": "googleapis", | |
| 13 | 13 | "remote": "https://github.com/googleapis/googleapis.git", | |
| 14 | - "sha": "53eb2512a55caabcbad1898225080a2a3dfcb6aa", | ||
| 15 | - "internalRef": "346818879" | ||
| 14 | + "sha": "0509f4bc8c86495f50a92f536bddc625797eda63", | ||
| 15 | + "internalRef": "347398860" | ||
| 16 | 16 | } | |
| 17 | 17 | }, | |
| 18 | 18 | { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2672,6 +2672,10 @@ def test_publisher_transport_channel_mtls_with_client_cert_source(transport_clas | |||
| 2672 | 2672 | ), | |
| 2673 | 2673 | ssl_credentials=mock_ssl_cred, | |
| 2674 | 2674 | quota_project_id=None, | |
| 2675 | + options=[ | ||
| 2676 | + ("grpc.max_send_message_length", -1), | ||
| 2677 | + ("grpc.max_receive_message_length", -1), | ||
| 2678 | + ], | ||
| 2675 | 2679 | ) | |
| 2676 | 2680 | assert transport.grpc_channel == mock_grpc_channel | |
| 2677 | 2681 | assert transport._ssl_channel_credentials == mock_ssl_cred | |
@@ -2713,6 +2717,10 @@ def test_publisher_transport_channel_mtls_with_adc(transport_class): | |||
| 2713 | 2717 | ), | |
| 2714 | 2718 | ssl_credentials=mock_ssl_cred, | |
| 2715 | 2719 | quota_project_id=None, | |
| 2720 | + options=[ | ||
| 2721 | + ("grpc.max_send_message_length", -1), | ||
| 2722 | + ("grpc.max_receive_message_length", -1), | ||
| 2723 | + ], | ||
| 2716 | 2724 | ) | |
| 2717 | 2725 | assert transport.grpc_channel == mock_grpc_channel | |
| 2718 | 2726 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments