Skip to content

Commit

Permalink
[CHANGE ME] Re-generated pubsub to pick up changes in the API or clie…
Browse files Browse the repository at this point in the history
…nt library generator.
  • Loading branch information
yoshi-automation committed Mar 23, 2019
1 parent c2b5dfc commit 8885b3b
Show file tree
Hide file tree
Showing 5 changed files with 179 additions and 90 deletions.
9 changes: 9 additions & 0 deletions pubsub/google/cloud/pubsub_v1/gapic/subscriber_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ def create_subscription(
retain_acked_messages=None,
message_retention_duration=None,
labels=None,
enable_message_ordering=None,
expiration_policy=None,
retry=google.api_core.gapic_v1.method.DEFAULT,
timeout=google.api_core.gapic_v1.method.DEFAULT,
Expand Down Expand Up @@ -309,6 +310,13 @@ def create_subscription(
message :class:`~google.cloud.pubsub_v1.types.Duration`
labels (dict[str -> str]): See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
managing labels</a>.
enable_message_ordering (bool): If true, messages published with the same ``ordering_key`` in
``PubsubMessage`` will be delivered to the subscribers in the order in
which they are received by the Pub/Sub system. Otherwise, they may be
delivered in any order. EXPERIMENTAL: This feature is part of a closed
alpha release. This API might be changed in backward-incompatible ways
and is not recommended for production use. It is not subject to any SLA
or deprecation policy.
expiration_policy (Union[dict, ~google.cloud.pubsub_v1.types.ExpirationPolicy]): A policy that specifies the conditions for this subscription's
expiration. A subscription is considered active as long as any connected
subscriber is successfully consuming messages from the subscription or
Expand Down Expand Up @@ -359,6 +367,7 @@ def create_subscription(
retain_acked_messages=retain_acked_messages,
message_retention_duration=message_retention_duration,
labels=labels,
enable_message_ordering=enable_message_ordering,
expiration_policy=expiration_policy,
)
return self._inner_api_calls["create_subscription"](
Expand Down
18 changes: 18 additions & 0 deletions pubsub/google/cloud/pubsub_v1/proto/pubsub.proto
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,15 @@ message PubsubMessage {
// it receives the `Publish` call. It must not be populated by the
// publisher in a `Publish` call.
google.protobuf.Timestamp publish_time = 4;

// Identifies related messages for which publish order should be respected.
// If a `Subscription` has `enable_message_ordering` set to `true`, messages
// published with the same `ordering_key` value will be delivered to
// subscribers in the order in which they are received by the Pub/Sub system.
// <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
// API might be changed in backward-incompatible ways and is not recommended
// for production use. It is not subject to any SLA or deprecation policy.
string ordering_key = 5;
}

// Request for the GetTopic method.
Expand Down Expand Up @@ -607,6 +616,15 @@ message Subscription {
// managing labels</a>.
map<string, string> labels = 9;

// If true, messages published with the same `ordering_key` in `PubsubMessage`
// will be delivered to the subscribers in the order in which they
// are received by the Pub/Sub system. Otherwise, they may be delivered in
// any order.
// <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
// API might be changed in backward-incompatible ways and is not recommended
// for production use. It is not subject to any SLA or deprecation policy.
bool enable_message_ordering = 10;

// A policy that specifies the conditions for this subscription's expiration.
// A subscription is considered active as long as any connected subscriber is
// successfully consuming messages from the subscription or is issuing
Expand Down
Loading

0 comments on commit 8885b3b

Please sign in to comment.