Skip to content

Commit 2bea99b

Browse files
committed
generated updates to types
1 parent e5976ca commit 2bea99b

3 files changed

Lines changed: 5 additions & 18 deletions

File tree

packages/google-cloud-pubsub/google/pubsub_v1/types/__init__.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
from typing import Union
17-
1816
from .pubsub import (
1917
AcknowledgeRequest,
2018
AIInference,
@@ -89,16 +87,7 @@
8987
ValidateSchemaResponse,
9088
)
9189

92-
TimeoutType = Union[
93-
int,
94-
float,
95-
"google.api_core.timeout.ConstantTimeout",
96-
"google.api_core.timeout.ExponentialTimeout",
97-
]
98-
"""The type of the timeout parameter of publisher client methods."""
99-
10090
__all__ = (
101-
"TimeoutType",
10291
"AcknowledgeRequest",
10392
"AIInference",
10493
"BigQueryConfig",

packages/google-cloud-pubsub/google/pubsub_v1/types/pubsub.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,11 @@
1717

1818
from typing import MutableMapping, MutableSequence
1919

20+
import google.protobuf.duration_pb2 as duration_pb2 # type: ignore
21+
import google.protobuf.field_mask_pb2 as field_mask_pb2 # type: ignore
22+
import google.protobuf.struct_pb2 as struct_pb2 # type: ignore
23+
import google.protobuf.timestamp_pb2 as timestamp_pb2 # type: ignore
2024
import proto # type: ignore
21-
from google.protobuf import (
22-
duration_pb2, # type: ignore
23-
field_mask_pb2, # type: ignore
24-
struct_pb2, # type: ignore
25-
timestamp_pb2, # type: ignore
26-
)
2725

2826
from google.pubsub_v1.types import schema as gp_schema
2927

packages/google-cloud-pubsub/google/pubsub_v1/types/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
from typing import MutableMapping, MutableSequence
1919

20+
import google.protobuf.timestamp_pb2 as timestamp_pb2 # type: ignore
2021
import proto # type: ignore
21-
from google.protobuf import timestamp_pb2 # type: ignore
2222

2323
__protobuf__ = proto.module(
2424
package="google.pubsub.v1",

0 commit comments

Comments
 (0)