Skip to content
This repository was archived by the owner on Oct 13, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
e041eb5
changes without context
yoshi-automation Jul 18, 2021
aa09a8e
chore: upgrade to gapic-generator-python 0.44.0
yoshi-automation Jul 18, 2021
8403faa
chore: upgrade gapic-generator python to 0.44.1
yoshi-automation Jul 18, 2021
b2a7a66
chore: upgrade gapic-generator python to 0.44.1
yoshi-automation Jul 18, 2021
2e0be21
chore: revert to gapic-generator-python 0.43.3
yoshi-automation Jul 18, 2021
f85c71f
fix: add async client to %name_%version/init.py chore: add autogenera…
yoshi-automation Jul 18, 2021
3388c76
chore: upgrade gapic-generator-python to 0.46.1
yoshi-automation Jul 18, 2021
6866672
chore: upgrade gapic-generator-python to 0.46.3
yoshi-automation Jul 18, 2021
5bef0ca
chore: remove all monolith Bazel deps chore: release gapic-generator-…
yoshi-automation Jul 18, 2021
e84fc7a
chore: update python microgenerator to v0.50.2
yoshi-automation Jul 18, 2021
3ab0556
chore: use gapic-generator-python 0.50.3
yoshi-automation Jul 18, 2021
f27e48e
feat: Adding subscription properties to streaming pull response in th…
yoshi-automation Jul 18, 2021
195dcba
feat: Add method signature for Subscriber.Pull without the deprecated…
yoshi-automation Jul 18, 2021
2d63b37
Work around gapic generator docstring bug
parthea Jul 18, 2021
4578d01
run synthtool locally
parthea Jul 18, 2021
618ceee
Merge remote-tracking branch 'origin/master' into autosynth-googleapis
parthea Jul 18, 2021
b48db21
run synthool locally
parthea Jul 18, 2021
b82f5a7
fix: require google-api-core >= 1.26.0
parthea Jul 17, 2021
412d31f
fix(deps): add packaging requirement
parthea Jul 18, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
branch = True

[report]
fail_under = 100
show_missing = True
omit =
google/cloud/__init__.py
Expand Down
12 changes: 11 additions & 1 deletion google/cloud/pubsub_v1/proto/pubsub.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2020 Google LLC
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -505,6 +505,7 @@ service Subscriber {
};
option (google.api.method_signature) =
"subscription,return_immediately,max_messages";
option (google.api.method_signature) = "subscription,max_messages";
}

// Establishes a stream with the server, which sends messages down to the
Expand Down Expand Up @@ -1142,8 +1143,17 @@ message StreamingPullRequest {
// Response for the `StreamingPull` method. This response is used to stream
// messages from the server to the client.
message StreamingPullResponse {
// Subscription properties sent as part of the response.
message SubscriptionProperties {
// True iff message ordering is enabled for this subscription.
bool message_ordering_enabled = 2;
}

// Received Pub/Sub messages. This will not be empty.
repeated ReceivedMessage received_messages = 1;

// Properties associated with this subscription.
SubscriptionProperties subscription_properties = 4;
}

// Request for the `CreateSnapshot` method.
Expand Down
48 changes: 24 additions & 24 deletions google/pubsub/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -15,14 +14,15 @@
# limitations under the License.
#

from google.pubsub_v1.services.publisher.async_client import PublisherAsyncClient
from google.pubsub_v1.services.publisher.client import PublisherClient
from google.pubsub_v1.services.publisher.async_client import PublisherAsyncClient
from google.pubsub_v1.services.schema_service.client import SchemaServiceClient
from google.pubsub_v1.services.schema_service.async_client import (
SchemaServiceAsyncClient,
)
from google.pubsub_v1.services.schema_service.client import SchemaServiceClient
from google.pubsub_v1.services.subscriber.async_client import SubscriberAsyncClient
from google.pubsub_v1.services.subscriber.client import SubscriberClient
from google.pubsub_v1.services.subscriber.async_client import SubscriberAsyncClient

from google.pubsub_v1.types.pubsub import AcknowledgeRequest
from google.pubsub_v1.types.pubsub import CreateSnapshotRequest
from google.pubsub_v1.types.pubsub import DeadLetterPolicy
Expand All @@ -41,10 +41,10 @@
from google.pubsub_v1.types.pubsub import ListSubscriptionsResponse
from google.pubsub_v1.types.pubsub import ListTopicSnapshotsRequest
from google.pubsub_v1.types.pubsub import ListTopicSnapshotsResponse
from google.pubsub_v1.types.pubsub import ListTopicSubscriptionsRequest
from google.pubsub_v1.types.pubsub import ListTopicSubscriptionsResponse
from google.pubsub_v1.types.pubsub import ListTopicsRequest
from google.pubsub_v1.types.pubsub import ListTopicsResponse
from google.pubsub_v1.types.pubsub import ListTopicSubscriptionsRequest
from google.pubsub_v1.types.pubsub import ListTopicSubscriptionsResponse
from google.pubsub_v1.types.pubsub import MessageStoragePolicy
from google.pubsub_v1.types.pubsub import ModifyAckDeadlineRequest
from google.pubsub_v1.types.pubsub import ModifyPushConfigRequest
Expand All @@ -69,78 +69,78 @@
from google.pubsub_v1.types.pubsub import UpdateTopicRequest
from google.pubsub_v1.types.schema import CreateSchemaRequest
from google.pubsub_v1.types.schema import DeleteSchemaRequest
from google.pubsub_v1.types.schema import Encoding
from google.pubsub_v1.types.schema import GetSchemaRequest
from google.pubsub_v1.types.schema import ListSchemasRequest
from google.pubsub_v1.types.schema import ListSchemasResponse
from google.pubsub_v1.types.schema import Schema
from google.pubsub_v1.types.schema import SchemaView
from google.pubsub_v1.types.schema import ValidateMessageRequest
from google.pubsub_v1.types.schema import ValidateMessageResponse
from google.pubsub_v1.types.schema import ValidateSchemaRequest
from google.pubsub_v1.types.schema import ValidateSchemaResponse
from google.pubsub_v1.types.schema import Encoding
from google.pubsub_v1.types.schema import SchemaView

__all__ = (
"PublisherClient",
"PublisherAsyncClient",
"SchemaServiceClient",
"SchemaServiceAsyncClient",
"SubscriberClient",
"SubscriberAsyncClient",
"AcknowledgeRequest",
"CreateSchemaRequest",
"CreateSnapshotRequest",
"DeadLetterPolicy",
"DeleteSchemaRequest",
"DeleteSnapshotRequest",
"DeleteSubscriptionRequest",
"DeleteTopicRequest",
"DetachSubscriptionRequest",
"DetachSubscriptionResponse",
"Encoding",
"ExpirationPolicy",
"GetSchemaRequest",
"GetSnapshotRequest",
"GetSubscriptionRequest",
"GetTopicRequest",
"ListSchemasRequest",
"ListSchemasResponse",
"ListSnapshotsRequest",
"ListSnapshotsResponse",
"ListSubscriptionsRequest",
"ListSubscriptionsResponse",
"ListTopicSnapshotsRequest",
"ListTopicSnapshotsResponse",
"ListTopicSubscriptionsRequest",
"ListTopicSubscriptionsResponse",
"ListTopicsRequest",
"ListTopicsResponse",
"ListTopicSubscriptionsRequest",
"ListTopicSubscriptionsResponse",
"MessageStoragePolicy",
"ModifyAckDeadlineRequest",
"ModifyPushConfigRequest",
"PublishRequest",
"PublishResponse",
"PublisherAsyncClient",
"PublisherClient",
"PubsubMessage",
"PullRequest",
"PullResponse",
"PushConfig",
"ReceivedMessage",
"RetryPolicy",
"Schema",
"SchemaServiceAsyncClient",
"SchemaServiceClient",
"SchemaSettings",
"SchemaView",
"SeekRequest",
"SeekResponse",
"Snapshot",
"StreamingPullRequest",
"StreamingPullResponse",
"SubscriberAsyncClient",
"SubscriberClient",
"Subscription",
"Topic",
"UpdateSnapshotRequest",
"UpdateSubscriptionRequest",
"UpdateTopicRequest",
"CreateSchemaRequest",
"DeleteSchemaRequest",
"GetSchemaRequest",
"ListSchemasRequest",
"ListSchemasResponse",
"Schema",
"ValidateMessageRequest",
"ValidateMessageResponse",
"ValidateSchemaRequest",
"ValidateSchemaResponse",
"Encoding",
"SchemaView",
)
19 changes: 12 additions & 7 deletions google/pubsub_v1/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -16,8 +15,12 @@
#

from .services.publisher import PublisherClient
from .services.publisher import PublisherAsyncClient
from .services.schema_service import SchemaServiceClient
from .services.schema_service import SchemaServiceAsyncClient
from .services.subscriber import SubscriberClient
from .services.subscriber import SubscriberAsyncClient

from .types.pubsub import AcknowledgeRequest
from .types.pubsub import CreateSnapshotRequest
from .types.pubsub import DeadLetterPolicy
Expand All @@ -36,10 +39,10 @@
from .types.pubsub import ListSubscriptionsResponse
from .types.pubsub import ListTopicSnapshotsRequest
from .types.pubsub import ListTopicSnapshotsResponse
from .types.pubsub import ListTopicSubscriptionsRequest
from .types.pubsub import ListTopicSubscriptionsResponse
from .types.pubsub import ListTopicsRequest
from .types.pubsub import ListTopicsResponse
from .types.pubsub import ListTopicSubscriptionsRequest
from .types.pubsub import ListTopicSubscriptionsResponse
from .types.pubsub import MessageStoragePolicy
from .types.pubsub import ModifyAckDeadlineRequest
from .types.pubsub import ModifyPushConfigRequest
Expand All @@ -64,19 +67,21 @@
from .types.pubsub import UpdateTopicRequest
from .types.schema import CreateSchemaRequest
from .types.schema import DeleteSchemaRequest
from .types.schema import Encoding
from .types.schema import GetSchemaRequest
from .types.schema import ListSchemasRequest
from .types.schema import ListSchemasResponse
from .types.schema import Schema
from .types.schema import SchemaView
from .types.schema import ValidateMessageRequest
from .types.schema import ValidateMessageResponse
from .types.schema import ValidateSchemaRequest
from .types.schema import ValidateSchemaResponse

from .types.schema import Encoding
from .types.schema import SchemaView

__all__ = (
"PublisherAsyncClient",
"SchemaServiceAsyncClient",
"SubscriberAsyncClient",
"AcknowledgeRequest",
"CreateSchemaRequest",
"CreateSnapshotRequest",
Expand Down Expand Up @@ -110,6 +115,7 @@
"ModifyPushConfigRequest",
"PublishRequest",
"PublishResponse",
"PublisherClient",
"PubsubMessage",
"PullRequest",
"PullResponse",
Expand All @@ -135,5 +141,4 @@
"ValidateMessageResponse",
"ValidateSchemaRequest",
"ValidateSchemaResponse",
"PublisherClient",
)
Loading