Skip to content
This repository was archived by the owner on Mar 9, 2026. It is now read-only.

Commit 2117649

Browse files
yoshi-automationplamut
authored andcommitted
[CHANGE ME] Re-generated pubsub to pick up changes in the API or client library generator. (#8399)
1 parent 8d2c233 commit 2117649

9 files changed

Lines changed: 56 additions & 9 deletions

File tree

.coveragerc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Generated by synthtool. DO NOT EDIT!
12
[run]
23
branch = True
34

.flake8

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Generated by synthtool. DO NOT EDIT!
12
[flake8]
23
ignore = E203, E266, E501, W503
34
exclude =

google/cloud/pubsub_v1/gapic/transports/publisher_grpc_transport.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ def __init__(
7474
}
7575

7676
@classmethod
77-
def create_channel(cls, address="pubsub.googleapis.com:443", credentials=None):
77+
def create_channel(
78+
cls, address="pubsub.googleapis.com:443", credentials=None, **kwargs
79+
):
7880
"""Create and return a gRPC channel object.
7981
8082
Args:
@@ -84,12 +86,14 @@ def create_channel(cls, address="pubsub.googleapis.com:443", credentials=None):
8486
credentials identify this application to the service. If
8587
none are specified, the client will attempt to ascertain
8688
the credentials from the environment.
89+
kwargs (dict): Keyword arguments, which are passed to the
90+
channel creation.
8791
8892
Returns:
8993
grpc.Channel: A gRPC channel object.
9094
"""
9195
return google.api_core.grpc_helpers.create_channel(
92-
address, credentials=credentials, scopes=cls._OAUTH_SCOPES
96+
address, credentials=credentials, scopes=cls._OAUTH_SCOPES, **kwargs
9397
)
9498

9599
@property

google/cloud/pubsub_v1/gapic/transports/subscriber_grpc_transport.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ def __init__(
7474
}
7575

7676
@classmethod
77-
def create_channel(cls, address="pubsub.googleapis.com:443", credentials=None):
77+
def create_channel(
78+
cls, address="pubsub.googleapis.com:443", credentials=None, **kwargs
79+
):
7880
"""Create and return a gRPC channel object.
7981
8082
Args:
@@ -84,12 +86,14 @@ def create_channel(cls, address="pubsub.googleapis.com:443", credentials=None):
8486
credentials identify this application to the service. If
8587
none are specified, the client will attempt to ascertain
8688
the credentials from the environment.
89+
kwargs (dict): Keyword arguments, which are passed to the
90+
channel creation.
8791
8892
Returns:
8993
grpc.Channel: A gRPC channel object.
9094
"""
9195
return google.api_core.grpc_helpers.create_channel(
92-
address, credentials=credentials, scopes=cls._OAUTH_SCOPES
96+
address, credentials=credentials, scopes=cls._OAUTH_SCOPES, **kwargs
9397
)
9498

9599
@property

google/cloud/pubsub_v1/proto/pubsub_pb2.py

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

google/cloud/pubsub_v1/types.py

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,39 @@
104104
)
105105

106106

107+
if sys.version_info >= (3, 5):
108+
FlowControl.__doc__ = (
109+
"The settings for controlling the rate at which messages are pulled "
110+
"with an asynchronous subscription."
111+
)
112+
FlowControl.max_bytes.__doc__ = (
113+
"The maximum total size of received - but not yet processed - messages "
114+
"before pausing the message stream."
115+
)
116+
FlowControl.max_messages.__doc__ = (
117+
"The maximum number of received - but not yet processed - messages before "
118+
"pausing the message stream."
119+
)
120+
FlowControl.resume_threshold.__doc__ = (
121+
"The relative threshold of the ``max_bytes`` and ``max_messages`` limits "
122+
"below which to resume the message stream. Must be a positive number not "
123+
"greater than ``1.0``."
124+
)
125+
FlowControl.max_requests.__doc__ = "Currently not in use."
126+
FlowControl.max_request_batch_size.__doc__ = (
127+
"The maximum number of requests scheduled by callbacks to process and "
128+
"dispatch at a time."
129+
)
130+
FlowControl.max_request_batch_latency.__doc__ = (
131+
"The maximum amount of time in seconds to wait for additional request "
132+
"items before processing the next batch of requests."
133+
)
134+
FlowControl.max_lease_duration.__doc__ = (
135+
"The maximum amount of time in seconds to hold a lease on a message "
136+
"before dropping it from the lease management."
137+
)
138+
139+
107140
_shared_modules = [
108141
http_pb2,
109142
iam_policy_pb2,

noxfile.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17+
# Generated by synthtool. DO NOT EDIT!
18+
1719
from __future__ import absolute_import
1820
import os
1921
import shutil

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
# Generated by synthtool. DO NOT EDIT!
12
[bdist_wheel]
23
universal = 1

synth.metadata

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
2-
"updateTime": "2019-06-12T13:55:40.520528Z",
2+
"updateTime": "2019-06-18T12:24:16.486264Z",
33
"sources": [
44
{
55
"generator": {
66
"name": "artman",
7-
"version": "0.24.1",
8-
"dockerImage": "googleapis/artman@sha256:6018498e15310260dc9b03c9d576608908ed9fbabe42e1494ff3d827fea27b19"
7+
"version": "0.27.0",
8+
"dockerImage": "googleapis/artman@sha256:b036a7f4278d9deb5796f065e5c7f608d47d75369985ca7ab5039998120e972d"
99
}
1010
},
1111
{
1212
"git": {
1313
"name": "googleapis",
1414
"remote": "https://github.com/googleapis/googleapis.git",
15-
"sha": "f117dac435e96ebe58d85280a3faf2350c4d4219",
16-
"internalRef": "252714985"
15+
"sha": "384aa843867c4d17756d14a01f047b6368494d32",
16+
"internalRef": "253675319"
1717
}
1818
},
1919
{

0 commit comments

Comments
 (0)