diff --git a/.kokoro/publish-docs.sh b/.kokoro/publish-docs.sh index 6a15192de..f462c727b 100755 --- a/.kokoro/publish-docs.sh +++ b/.kokoro/publish-docs.sh @@ -13,8 +13,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -#!/bin/bash - set -eo pipefail # Disable buffering, so that the logs stream through. diff --git a/.kokoro/release.sh b/.kokoro/release.sh index 9f8df9b3e..321ef575c 100755 --- a/.kokoro/release.sh +++ b/.kokoro/release.sh @@ -13,8 +13,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -#!/bin/bash - set -eo pipefail # Start the releasetool reporter diff --git a/google/cloud/pubsub_v1/gapic/publisher_client.py b/google/cloud/pubsub_v1/gapic/publisher_client.py index 1a981fefa..d9382d2be 100644 --- a/google/cloud/pubsub_v1/gapic/publisher_client.py +++ b/google/cloud/pubsub_v1/gapic/publisher_client.py @@ -247,8 +247,12 @@ def create_topic( metadata=None, ): """ - Creates the given topic with the given name. See the resource name - rules. + Deletes the topic with the given name. Returns ``NOT_FOUND`` if the + topic does not exist. After a topic is deleted, a new topic may be + created with the same name; this is an entirely new topic with none of + the old configuration or subscriptions. Existing subscriptions to this + topic are not deleted, but their ``topic`` field is set to + ``_deleted-topic_``. Example: >>> from google.cloud import pubsub_v1 @@ -260,12 +264,9 @@ def create_topic( >>> response = client.create_topic(name) Args: - name (str): Required. The name of the topic. It must have the format - ``"projects/{project}/topics/{topic}"``. ``{topic}`` must start with a - letter, and contain only letters (``[A-Za-z]``), numbers (``[0-9]``), - dashes (``-``), underscores (``_``), periods (``.``), tildes (``~``), - plus (``+``) or percent signs (``%``). It must be between 3 and 255 - characters in length, and it must not start with ``"goog"``. + name (str): If type_name is set, this need not be set. If both this and + type_name are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or + TYPE_GROUP. labels (dict[str -> str]): See Creating and managing labels. message_storage_policy (Union[dict, ~google.cloud.pubsub_v1.types.MessageStoragePolicy]): Policy constraining the set of Google Cloud Platform regions where messages @@ -274,11 +275,10 @@ def create_topic( If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.pubsub_v1.types.MessageStoragePolicy` - kms_key_name (str): The resource name of the Cloud KMS CryptoKey to be used to protect - access to messages published on this topic. - - The expected format is - ``projects/*/locations/*/keyRings/*/cryptoKeys/*``. + kms_key_name (str): The set of permissions to check for the ``resource``. Permissions + with wildcards (such as '*' or 'storage.*') are not allowed. For more + information see `IAM + Overview `__. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -362,11 +362,8 @@ def update_topic( If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.pubsub_v1.types.Topic` - update_mask (Union[dict, ~google.cloud.pubsub_v1.types.FieldMask]): Required. Indicates which fields in the provided topic to update. Must - be specified and non-empty. Note that if ``update_mask`` contains - "message\_storage\_policy" but the ``message_storage_policy`` is not set - in the ``topic`` provided above, then the updated value is determined by - the policy configured at the project or organization level. + update_mask (Union[dict, ~google.cloud.pubsub_v1.types.FieldMask]): An annotation that describes a resource definition without a + corresponding message; see ``ResourceDescriptor``. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.pubsub_v1.types.FieldMask` @@ -427,8 +424,37 @@ def publish( metadata=None, ): """ - Adds one or more messages to the topic. Returns ``NOT_FOUND`` if the - topic does not exist. + Protocol Buffers - Google's data interchange format Copyright 2008 + Google Inc. All rights reserved. + https://developers.google.com/protocol-buffers/ + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + + :: + + * Redistributions of source code must retain the above copyright + + notice, this list of conditions and the following disclaimer. \* + Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. \* + Neither the name of Google Inc. nor the names of its contributors may be + used to endorse or promote products derived from this software without + specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS + IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A + PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Example: >>> from google.cloud import pubsub_v1 @@ -443,8 +469,9 @@ def publish( >>> response = client.publish(topic, messages) Args: - topic (str): Required. The messages in the request will be published on this topic. - Format is ``projects/{project}/topics/{topic}``. + topic (str): Denotes a field as required. This indicates that the field **must** + be provided as part of the request, and failure to do so will cause an + error (usually ``INVALID_ARGUMENT``). messages (list[Union[dict, ~google.cloud.pubsub_v1.types.PubsubMessage]]): Required. The messages to publish. If a dict is provided, it must be of the same form as the protobuf @@ -517,8 +544,8 @@ def get_topic( >>> response = client.get_topic(topic) Args: - topic (str): Required. The name of the topic to get. Format is - ``projects/{project}/topics/{topic}``. + topic (str): Required. The name of the project in which to list snapshots. Format + is ``projects/{project-id}``. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -600,8 +627,8 @@ def list_topics( ... pass Args: - project (str): Required. The name of the project in which to list topics. Format is - ``projects/{project-id}``. + project (str): Required. The subscription from which messages should be pulled. + Format is ``projects/{project}/subscriptions/{sub}``. page_size (int): The maximum number of resources contained in the underlying API response. If page streaming is performed per- resource, this parameter does not affect the return value. If page @@ -702,8 +729,13 @@ def list_topic_subscriptions( ... pass Args: - topic (str): Required. The name of the topic that subscriptions are attached to. - Format is ``projects/{project}/topics/{topic}``. + topic (str): Optional. If this field set to true, the system will respond + immediately even if it there are no messages available to return in the + ``Pull`` response. Otherwise, the system may wait (for a bounded amount + of time) until at least one message is available, rather than returning + no messages. Warning: setting this field to ``true`` is discouraged + because it adversely impacts the performance of ``Pull`` operations. We + recommend that users do not set this field. page_size (int): The maximum number of resources contained in the underlying API response. If page streaming is performed per- resource, this parameter does not affect the return value. If page @@ -811,8 +843,10 @@ def list_topic_snapshots( ... pass Args: - topic (str): Required. The name of the topic that snapshots are attached to. Format - is ``projects/{project}/topics/{topic}``. + topic (str): Denotes a field as output only. This indicates that the field is + provided in responses, but including the field in a request does nothing + (the server *must* ignore it and *must not* throw an error as a result + of the field's presence). page_size (int): The maximum number of resources contained in the underlying API response. If page streaming is performed per- resource, this parameter does not affect the return value. If page @@ -888,12 +922,8 @@ def delete_topic( metadata=None, ): """ - Deletes the topic with the given name. Returns ``NOT_FOUND`` if the - topic does not exist. After a topic is deleted, a new topic may be - created with the same name; this is an entirely new topic with none of - the old configuration or subscriptions. Existing subscriptions to this - topic are not deleted, but their ``topic`` field is set to - ``_deleted-topic_``. + An annotation that describes a resource reference, see + ``ResourceReference``. Example: >>> from google.cloud import pubsub_v1 @@ -905,8 +935,16 @@ def delete_topic( >>> client.delete_topic(topic) Args: - topic (str): Required. Name of the topic to delete. Format is - ``projects/{project}/topics/{topic}``. + topic (str): The resource type. It must be in the format of + {service_name}/{resource_type_kind}. The ``resource_type_kind`` must be + singular and must not include version numbers. + + Example: ``storage.googleapis.com/Bucket`` + + The value of the resource_type_kind must follow the regular expression + /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and + should use PascalCase (UpperCamelCase). The maximum number of characters + allowed for the ``resource_type_kind`` is 100. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -983,10 +1021,7 @@ def set_iam_policy( Args: resource (str): REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - policy (Union[dict, ~google.cloud.pubsub_v1.types.Policy]): REQUIRED: The complete policy to be applied to the ``resource``. The - size of the policy is limited to a few 10s of KB. An empty policy is a - valid policy but certain Cloud Platform services (such as Projects) - might reject them. + policy (Union[dict, ~google.cloud.pubsub_v1.types.Policy]): See ``HttpRule``. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.pubsub_v1.types.Policy` @@ -1063,8 +1098,8 @@ def get_iam_policy( Args: resource (str): REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. - options_ (Union[dict, ~google.cloud.pubsub_v1.types.GetPolicyOptions]): OPTIONAL: A ``GetPolicyOptions`` object for specifying options to - ``GetIamPolicy``. This field is only used by Cloud IAM. + options_ (Union[dict, ~google.cloud.pubsub_v1.types.GetPolicyOptions]): A URL locating the endpoint to which messages should be pushed. For + example, a Webhook endpoint might use ``https://example.com/push``. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.pubsub_v1.types.GetPolicyOptions` @@ -1151,10 +1186,17 @@ def test_iam_permissions( Args: resource (str): REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - permissions (list[str]): The set of permissions to check for the ``resource``. Permissions with - wildcards (such as '*' or 'storage.*') are not allowed. For more - information see `IAM - Overview `__. + permissions (list[str]): The snapshot is guaranteed to exist up until this time. A + newly-created snapshot expires no later than 7 days from the time of its + creation. Its exact lifetime is determined at creation by the existing + backlog in the source subscription. Specifically, the lifetime of the + snapshot is + ``7 days - (age of oldest unacked message in the subscription)``. For + example, consider a subscription whose oldest unacked message is 3 days + old. If a snapshot is created from this subscription, the snapshot -- + which will always capture this 3-day-old backlog as long as the snapshot + exists -- will expire in 4 days. The service will refuse to create a + snapshot that would expire in less than 1 hour after creation. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. diff --git a/google/cloud/pubsub_v1/gapic/subscriber_client.py b/google/cloud/pubsub_v1/gapic/subscriber_client.py index e98a686bf..a5e6938d5 100644 --- a/google/cloud/pubsub_v1/gapic/subscriber_client.py +++ b/google/cloud/pubsub_v1/gapic/subscriber_client.py @@ -51,9 +51,11 @@ class SubscriberClient(object): """ - The service that an application uses to manipulate subscriptions and to - consume messages from a subscription via the ``Pull`` method or by - establishing a bi-directional stream using the ``StreamingPull`` method. + Received Pub/Sub messages. The list will be empty if there are no + more messages available in the backlog. For JSON, the response can be + entirely empty. The Pub/Sub system may return fewer than the + ``maxMessages`` requested even if there are more messages available in + the backlog. """ SERVICE_ADDRESS = "pubsub.googleapis.com:443" @@ -254,16 +256,16 @@ def create_subscription( metadata=None, ): """ - Creates a subscription to a given topic. See the resource name rules. If - the subscription already exists, returns ``ALREADY_EXISTS``. If the - corresponding topic doesn't exist, returns ``NOT_FOUND``. - - If the name is not provided in the request, the server will assign a - random name for this subscription on the same project as the topic, - conforming to the `resource name - format `__. - The generated name is populated in the returned Subscription object. - Note that for REST API requests, you must specify a name in the request. + The time to seek to. Messages retained in the subscription that were + published before this time are marked as acknowledged, and messages + retained in the subscription that were published after this time are + marked as unacknowledged. Note that this operation affects only those + messages retained in the subscription (configured by the combination of + ``message_retention_duration`` and ``retain_acked_messages``). For + example, if ``time`` corresponds to a point before the message retention + window (or to a point before the system's notion of the subscription + creation time), only retained messages will be marked as unacknowledged, + and already-expunged messages will not be restored. Example: >>> from google.cloud import pubsub_v1 @@ -276,90 +278,78 @@ def create_subscription( >>> response = client.create_subscription(name, topic) Args: - name (str): Required. The name of the subscription. It must have the format - ``"projects/{project}/subscriptions/{subscription}"``. - ``{subscription}`` must start with a letter, and contain only letters - (``[A-Za-z]``), numbers (``[0-9]``), dashes (``-``), underscores - (``_``), periods (``.``), tildes (``~``), plus (``+``) or percent signs - (``%``). It must be between 3 and 255 characters in length, and it must - not start with ``"goog"``. - topic (str): Required. The name of the topic from which this subscription is - receiving messages. Format is ``projects/{project}/topics/{topic}``. The - value of this field will be ``_deleted-topic_`` if the topic has been - deleted. - push_config (Union[dict, ~google.cloud.pubsub_v1.types.PushConfig]): If push delivery is used with this subscription, this field is used to - configure it. An empty ``pushConfig`` signifies that the subscriber will - pull and ack messages using API methods. + name (str): The plural name used in the resource name, such as 'projects' for + the name of 'projects/{project}'. It is the same concept of the + ``plural`` field in k8s CRD spec + https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + topic (str): Set true to use the old proto1 MessageSet wire format for + extensions. This is provided for backwards-compatibility with the + MessageSet wire format. You should not use this for any other reason: + It's less efficient, has fewer features, and is more complicated. + + The message must be defined exactly as follows: message Foo { option + message_set_wire_format = true; extensions 4 to max; } Note that the + message cannot have any defined fields; MessageSets only have + extensions. + + All extensions of your type must be singular messages; e.g. they cannot + be int32s, enums, or repeated messages. + + Because this is an option, the above two restrictions are not enforced + by the protocol compiler. + push_config (Union[dict, ~google.cloud.pubsub_v1.types.PushConfig]): The service that an application uses to manipulate subscriptions and + to consume messages from a subscription via the ``Pull`` method or by + establishing a bi-directional stream using the ``StreamingPull`` method. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.pubsub_v1.types.PushConfig` - ack_deadline_seconds (int): The approximate amount of time (on a best-effort basis) Pub/Sub waits - for the subscriber to acknowledge receipt before resending the message. - In the interval after the message is delivered and before it is - acknowledged, it is considered to be outstanding. During that time - period, the message will not be redelivered (on a best-effort basis). - - For pull subscriptions, this value is used as the initial value for the - ack deadline. To override this value for a given message, call - ``ModifyAckDeadline`` with the corresponding ``ack_id`` if using - non-streaming pull or send the ``ack_id`` in a - ``StreamingModifyAckDeadlineRequest`` if using streaming pull. The - minimum custom deadline you can specify is 10 seconds. The maximum - custom deadline you can specify is 600 seconds (10 minutes). If this - parameter is 0, a default value of 10 seconds is used. - - For push delivery, this value is also used to set the request timeout - for the call to the push endpoint. - - If the subscriber never acknowledges the message, the Pub/Sub system - will eventually redeliver the message. - retain_acked_messages (bool): Indicates whether to retain acknowledged messages. If true, then - messages are not expunged from the subscription's backlog, even if they - are acknowledged, until they fall out of the - ``message_retention_duration`` window. This must be true if you would - like to Seek to a timestamp. - message_retention_duration (Union[dict, ~google.cloud.pubsub_v1.types.Duration]): How long to retain unacknowledged messages in the subscription's - backlog, from the moment a message is published. If - ``retain_acked_messages`` is true, then this also configures the - retention of acknowledged messages, and thus configures how far back in - time a ``Seek`` can be done. Defaults to 7 days. Cannot be more than 7 - days or less than 10 minutes. + ack_deadline_seconds (int): If non-empty, 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 non-empty ``ordering_key`` value will be delivered to subscribers + in the order in which they are received by the Pub/Sub system. All + ``PubsubMessage``\ s published in a given ``PublishRequest`` must + specify the same ``ordering_key`` value. 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. + retain_acked_messages (bool): The same concept of the ``singular`` field in k8s CRD spec + https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + Such as "project" for the ``resourcemanager.googleapis.com/Project`` + type. + message_retention_duration (Union[dict, ~google.cloud.pubsub_v1.types.Duration]): Required. The new ack deadline with respect to the time this request + was sent to the Pub/Sub system. For example, if the value is 10, the new + ack deadline will expire 10 seconds after the ``ModifyAckDeadline`` call + was made. Specifying zero might immediately make the message available + for delivery to another subscriber client. This typically results in an + increase in the rate of message redeliveries (that is, duplicates). The + minimum deadline you can specify is 0 seconds. The maximum deadline you + can specify is 600 seconds (10 minutes). If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.pubsub_v1.types.Duration` labels (dict[str -> str]): See Creating and managing labels. - 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 - is issuing operations on the subscription. If ``expiration_policy`` is - not set, a *default policy* with ``ttl`` of 31 days will be used. The - minimum allowed value for ``expiration_policy.ttl`` is 1 day. + enable_message_ordering (bool): Required. The name of the topic to get. Format is + ``projects/{project}/topics/{topic}``. + expiration_policy (Union[dict, ~google.cloud.pubsub_v1.types.ExpirationPolicy]): The resource type that the annotated field references. + + Example: + + :: + + message Subscription { + string topic = 2 [(google.api.resource_reference) = { + type: "pubsub.googleapis.com/Topic" + }]; + } If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.pubsub_v1.types.ExpirationPolicy` - filter_ (str): An expression written in the Cloud Pub/Sub filter language. If - non-empty, then only ``PubsubMessage``\ s whose ``attributes`` field - matches the filter are delivered on this subscription. If empty, then no - messages are filtered out. 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. - dead_letter_policy (Union[dict, ~google.cloud.pubsub_v1.types.DeadLetterPolicy]): A policy that specifies the conditions for dead lettering messages in - this subscription. If dead\_letter\_policy is not set, dead lettering is - disabled. - - The Cloud Pub/Sub service account associated with this subscriptions's - parent project (i.e., - service-{project\_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must - have permission to Acknowledge() messages on this subscription. + filter_ (str): Response for the ``Publish`` method. + dead_letter_policy (Union[dict, ~google.cloud.pubsub_v1.types.DeadLetterPolicy]): Pulls messages from the server. The server may return + ``UNAVAILABLE`` if there are too many concurrent pull requests pending + for the given subscription. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.pubsub_v1.types.DeadLetterPolicy` @@ -457,7 +447,9 @@ def get_subscription( >>> response = client.get_subscription(subscription) Args: - subscription (str): Required. The name of the subscription to get. Format is + subscription (str): Required. The subscription for which to initialize the new stream. + This must be provided in the first request on the stream, and must not + be set in subsequent requests from client to server. Format is ``projects/{project}/subscriptions/{sub}``. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will @@ -625,8 +617,8 @@ def list_subscriptions( ... pass Args: - project (str): Required. The name of the project in which to list subscriptions. Format - is ``projects/{project-id}``. + project (str): Required. The messages in the request will be published on this + topic. Format is ``projects/{project}/topics/{topic}``. page_size (int): The maximum number of resources contained in the underlying API response. If page streaming is performed per- resource, this parameter does not affect the return value. If page @@ -704,12 +696,30 @@ def delete_subscription( metadata=None, ): """ - Deletes an existing subscription. All messages retained in the - subscription are immediately dropped. Calls to ``Pull`` after deletion - will return ``NOT_FOUND``. After a subscription is deleted, a new one - may be created with the same name, but the new one has no association - with the old subscription or its topic unless the same topic is - specified. + Optional. The relative resource name pattern associated with this + resource type. The DNS prefix of the full resource name shouldn't be + specified here. + + The path pattern must follow the syntax, which aligns with HTTP binding + syntax: + + :: + + Template = Segment { "/" Segment } ; + Segment = LITERAL | Variable ; + Variable = "{" LITERAL "}" ; + + Examples: + + :: + + - "projects/{project}/topics/{topic}" + - "projects/{project}/knowledgeBases/{knowledge_base}" + + The components in braces correspond to the IDs for each resource in the + hierarchy. It is expected that, if multiple patterns are provided, the + same component name (e.g. "project") refers to IDs of the same type of + resource. Example: >>> from google.cloud import pubsub_v1 @@ -721,8 +731,12 @@ def delete_subscription( >>> client.delete_subscription(subscription) Args: - subscription (str): Required. The subscription to delete. Format is - ``projects/{project}/subscriptions/{sub}``. + subscription (str): List of acknowledgement IDs for acknowledging previously received + messages (received on this stream or a different stream). If an ack ID + has expired, the corresponding message may be redelivered later. + Acknowledging a message more than once will not result in an error. If + the acknowledgement ID is malformed, the stream will be aborted with + status ``INVALID_ARGUMENT``. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -792,8 +806,7 @@ def get_snapshot( >>> response = client.get_snapshot(snapshot) Args: - snapshot (str): Required. The name of the snapshot to get. Format is - ``projects/{project}/snapshots/{snap}``. + snapshot (str): Request for the ``CreateSnapshot`` method. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -852,11 +865,13 @@ def modify_ack_deadline( metadata=None, ): """ - Modifies the ack deadline for a specific message. This method is useful - to indicate that more time is needed to process a message by the - subscriber, or to make the message available for redelivery if the - processing was interrupted. Note that this does not modify the - subscription-level ``ackDeadlineSeconds`` used for subsequent messages. + 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. Example: >>> from google.cloud import pubsub_v1 @@ -874,17 +889,14 @@ def modify_ack_deadline( >>> client.modify_ack_deadline(subscription, ack_ids, ack_deadline_seconds) Args: - subscription (str): Required. The name of the subscription. Format is - ``projects/{project}/subscriptions/{sub}``. + subscription (str): Role that is assigned to ``members``. For example, ``roles/viewer``, + ``roles/editor``, or ``roles/owner``. ack_ids (list[str]): Required. List of acknowledgment IDs. - ack_deadline_seconds (int): Required. The new ack deadline with respect to the time this request was - sent to the Pub/Sub system. For example, if the value is 10, the new ack - deadline will expire 10 seconds after the ``ModifyAckDeadline`` call was - made. Specifying zero might immediately make the message available for - delivery to another subscriber client. This typically results in an - increase in the rate of message redeliveries (that is, duplicates). The - minimum deadline you can specify is 0 seconds. The maximum deadline you - can specify is 600 seconds (10 minutes). + ack_deadline_seconds (int): List of acknowledgement IDs whose deadline will be modified based on + the corresponding element in ``modify_deadline_seconds``. This field can + be used to indicate that more time is needed to process a message by the + subscriber, or to make the message available for redelivery if the + processing was interrupted. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -943,13 +955,21 @@ def acknowledge( metadata=None, ): """ - Acknowledges the messages associated with the ``ack_ids`` in the - ``AcknowledgeRequest``. The Pub/Sub system can remove the relevant - messages from the subscription. - - Acknowledging a message whose ack deadline has expired may succeed, but - such a message may be redelivered later. Acknowledging a message more - than once will not result in an error. + Creates a snapshot from the requested subscription. Snapshots are + used in Seek operations, which allow you to manage message + acknowledgments in bulk. That is, you can set the acknowledgment state + of messages in an existing subscription to the state captured by a + snapshot. If the snapshot already exists, returns ``ALREADY_EXISTS``. If + the requested subscription doesn't exist, returns ``NOT_FOUND``. If the + backlog in the subscription is too old -- and the resulting snapshot + would expire in less than 1 hour -- then ``FAILED_PRECONDITION`` is + returned. See also the ``Snapshot.expire_time`` field. If the name is + not provided in the request, the server will assign a random name for + this snapshot on the same project as the subscription, conforming to the + `resource name + format `__. + The generated name is populated in the returned Snapshot object. Note + that for REST API requests, you must specify a name in the request. Example: >>> from google.cloud import pubsub_v1 @@ -964,11 +984,60 @@ def acknowledge( >>> client.acknowledge(subscription, ack_ids) Args: - subscription (str): Required. The subscription whose message is being acknowledged. Format - is ``projects/{project}/subscriptions/{sub}``. - ack_ids (list[str]): Required. The acknowledgment ID for the messages being acknowledged that - was returned by the Pub/Sub system in the ``Pull`` response. Must not be - empty. + subscription (str): Protocol Buffers - Google's data interchange format Copyright 2008 + Google Inc. All rights reserved. + https://developers.google.com/protocol-buffers/ + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + + :: + + * Redistributions of source code must retain the above copyright + + notice, this list of conditions and the following disclaimer. \* + Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. \* + Neither the name of Google Inc. nor the names of its contributors may be + used to endorse or promote products derived from this software without + specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS + IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A + PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + ack_ids (list[str]): Specifies the identities requesting access for a Cloud Platform + resource. ``members`` can have the following values: + + - ``allUsers``: A special identifier that represents anyone who is on + the internet; with or without a Google account. + + - ``allAuthenticatedUsers``: A special identifier that represents + anyone who is authenticated with a Google account or a service + account. + + - ``user:{emailid}``: An email address that represents a specific + Google account. For example, ``alice@example.com`` . + + - ``serviceAccount:{emailid}``: An email address that represents a + service account. For example, + ``my-other-app@appspot.gserviceaccount.com``. + + - ``group:{emailid}``: An email address that represents a Google group. + For example, ``admins@example.com``. + + - ``domain:{domain}``: The G Suite domain (primary) that represents all + the users of that domain. For example, ``google.com`` or + ``example.com``. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -1026,9 +1095,8 @@ def pull( metadata=None, ): """ - Pulls messages from the server. The server may return ``UNAVAILABLE`` if - there are too many concurrent pull requests pending for the given - subscription. + Required. The name of the subscription. Format is + ``projects/{project}/subscriptions/{sub}``. Example: >>> from google.cloud import pubsub_v1 @@ -1043,18 +1111,35 @@ def pull( >>> response = client.pull(subscription, max_messages) Args: - subscription (str): Required. The subscription from which messages should be pulled. Format - is ``projects/{project}/subscriptions/{sub}``. + subscription (str): The approximate amount of time (on a best-effort basis) Pub/Sub + waits for the subscriber to acknowledge receipt before resending the + message. In the interval after the message is delivered and before it is + acknowledged, it is considered to be outstanding. During that time + period, the message will not be redelivered (on a best-effort basis). + + For pull subscriptions, this value is used as the initial value for the + ack deadline. To override this value for a given message, call + ``ModifyAckDeadline`` with the corresponding ``ack_id`` if using + non-streaming pull or send the ``ack_id`` in a + ``StreamingModifyAckDeadlineRequest`` if using streaming pull. The + minimum custom deadline you can specify is 10 seconds. The maximum + custom deadline you can specify is 600 seconds (10 minutes). If this + parameter is 0, a default value of 10 seconds is used. + + For push delivery, this value is also used to set the request timeout + for the call to the push endpoint. + + If the subscriber never acknowledges the message, the Pub/Sub system + will eventually redeliver the message. max_messages (int): Required. The maximum number of messages to return for this request. Must be a positive integer. The Pub/Sub system may return fewer than the number specified. - return_immediately (bool): Optional. If this field set to true, the system will respond immediately - even if it there are no messages available to return in the ``Pull`` - response. Otherwise, the system may wait (for a bounded amount of time) - until at least one message is available, rather than returning no - messages. Warning: setting this field to ``true`` is discouraged because - it adversely impacts the performance of ``Pull`` operations. We - recommend that users do not set this field. + return_immediately (bool): Signed fractions of a second at nanosecond resolution of the span of + time. Durations less than one second are represented with a 0 + ``seconds`` field and a positive or negative ``nanos`` field. For + durations of one second or more, a non-zero value for the ``nanos`` + field must be of the same sign as the ``seconds`` field. Must be from + -999,999,999 to +999,999,999 inclusive. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -1113,13 +1198,11 @@ def streaming_pull( metadata=None, ): """ - Establishes a stream with the server, which sends messages down to the - client. The client streams acknowledgements and ack deadline - modifications back to the server. The server will close the stream and - return the status on any error. The server may close the stream with - status ``UNAVAILABLE`` to reassign server-side resources, in which case, - the client should re-establish the stream. Flow control can be achieved - by configuring the underlying RPC channel. + ID of this message, assigned by the server when the message is + published. Guaranteed to be unique within the topic. This value may be + read by a subscriber that receives a ``PubsubMessage`` via a ``Pull`` + call or a push delivery. It must not be populated by the publisher in a + ``Publish`` call. Example: >>> from google.cloud import pubsub_v1 @@ -1170,6 +1253,11 @@ def streaming_pull( client_info=self._client_info, ) + # Wrappers in api-core should not automatically pre-fetch the first + # stream result, as this breaks the stream when re-opening it. + # https://github.com/googleapis/python-pubsub/issues/93#issuecomment-630762257 + self.transport.streaming_pull._prefetch_first_result_ = False + return self._inner_api_calls["streaming_pull"]( requests, retry=retry, timeout=timeout, metadata=metadata ) @@ -1183,13 +1271,24 @@ def modify_push_config( metadata=None, ): """ - Modifies the ``PushConfig`` for a specified subscription. + Optional. The historical or future-looking state of the resource + pattern. + + Example: + + :: - This may be used to change a push subscription to a pull one (signified - by an empty ``PushConfig``) or vice versa, or change the endpoint URL - and other attributes of a push subscription. Messages will accumulate - for delivery continuously through the call regardless of changes to the - ``PushConfig``. + // The InspectTemplate message originally only supported resource + // names with organization, and project was added later. + message InspectTemplate { + option (google.api.resource) = { + type: "dlp.googleapis.com/InspectTemplate" + pattern: + "organizations/{organization}/inspectTemplates/{inspect_template}" + pattern: "projects/{project}/inspectTemplates/{inspect_template}" + history: ORIGINALLY_SINGLE_PATTERN + }; + } Example: >>> from google.cloud import pubsub_v1 @@ -1204,14 +1303,10 @@ def modify_push_config( >>> client.modify_push_config(subscription, push_config) Args: - subscription (str): Required. The name of the subscription. Format is - ``projects/{project}/subscriptions/{sub}``. - push_config (Union[dict, ~google.cloud.pubsub_v1.types.PushConfig]): Required. The push configuration for future deliveries. - - An empty ``pushConfig`` indicates that the Pub/Sub system should stop - pushing messages from the given subscription and allow messages to be - pulled and acknowledged - effectively pausing the subscription if - ``Pull`` or ``StreamingPull`` is not called. + subscription (str): Response for the ``ListTopicSubscriptions`` method. + push_config (Union[dict, ~google.cloud.pubsub_v1.types.PushConfig]): Signed seconds of the span of time. Must be from -315,576,000,000 to + +315,576,000,000 inclusive. Note: these bounds are computed from: 60 + sec/min \* 60 min/hr \* 24 hr/day \* 365.25 days/year \* 10000 years If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.pubsub_v1.types.PushConfig` @@ -1300,8 +1395,11 @@ def list_snapshots( ... pass Args: - project (str): Required. The name of the project in which to list snapshots. Format is - ``projects/{project-id}``. + project (str): Required. User-provided name for this snapshot. If the name is not + provided in the request, the server will assign a random name for this + snapshot on the same project as the subscription. Note that for REST API + requests, you must specify a name. See the resource name rules. Format + is ``projects/{project}/snapshots/{snap}``. page_size (int): The maximum number of resources contained in the underlying API response. If page streaming is performed per- resource, this parameter does not affect the return value. If page @@ -1379,20 +1477,9 @@ def create_snapshot( metadata=None, ): """ - Creates a snapshot from the requested subscription. Snapshots are used - in Seek operations, which allow you to manage message acknowledgments in - bulk. That is, you can set the acknowledgment state of messages in an - existing subscription to the state captured by a snapshot. If the - snapshot already exists, returns ``ALREADY_EXISTS``. If the requested - subscription doesn't exist, returns ``NOT_FOUND``. If the backlog in the - subscription is too old -- and the resulting snapshot would expire in - less than 1 hour -- then ``FAILED_PRECONDITION`` is returned. See also - the ``Snapshot.expire_time`` field. If the name is not provided in the - request, the server will assign a random name for this snapshot on the - same project as the subscription, conforming to the `resource name - format `__. - The generated name is populated in the returned Snapshot object. Note - that for REST API requests, you must specify a name in the request. + The time at which the message was published, populated by the server + when it receives the ``Publish`` call. It must not be populated by the + publisher in a ``Publish`` call. Example: >>> from google.cloud import pubsub_v1 @@ -1405,19 +1492,40 @@ def create_snapshot( >>> response = client.create_snapshot(name, subscription) Args: - name (str): Required. User-provided name for this snapshot. If the name is not - provided in the request, the server will assign a random name for this - snapshot on the same project as the subscription. Note that for REST API - requests, you must specify a name. See the resource name rules. Format - is ``projects/{project}/snapshots/{snap}``. - subscription (str): Required. The subscription whose backlog the snapshot retains. - Specifically, the created snapshot is guaranteed to retain: (a) The - existing backlog on the subscription. More precisely, this is defined as - the messages in the subscription's backlog that are unacknowledged upon - the successful completion of the ``CreateSnapshot`` request; as well as: - (b) Any messages published to the subscription's topic following the - successful completion of the CreateSnapshot request. Format is - ``projects/{project}/subscriptions/{sub}``. + name (str): The value returned by the last ``ListTopicsResponse``; indicates + that this is a continuation of a prior ``ListTopics`` call, and that the + system should return the next page of data. + subscription (str): Protocol Buffers - Google's data interchange format Copyright 2008 + Google Inc. All rights reserved. + https://developers.google.com/protocol-buffers/ + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + + :: + + * Redistributions of source code must retain the above copyright + + notice, this list of conditions and the following disclaimer. \* + Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. \* + Neither the name of Google Inc. nor the names of its contributors may be + used to endorse or promote products derived from this software without + specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS + IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A + PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. labels (dict[str -> str]): See Creating and managing labels. retry (Optional[google.api_core.retry.Retry]): A retry object used @@ -1589,8 +1697,7 @@ def delete_snapshot( >>> client.delete_snapshot(snapshot) Args: - snapshot (str): Required. The name of the snapshot to delete. Format is - ``projects/{project}/snapshots/{snap}``. + snapshot (str): javalite_serializable retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -1666,22 +1773,231 @@ def seek( Args: subscription (str): Required. The subscription to affect. - time (Union[dict, ~google.cloud.pubsub_v1.types.Timestamp]): The time to seek to. Messages retained in the subscription that were - published before this time are marked as acknowledged, and messages - retained in the subscription that were published after this time are - marked as unacknowledged. Note that this operation affects only those - messages retained in the subscription (configured by the combination of - ``message_retention_duration`` and ``retain_acked_messages``). For - example, if ``time`` corresponds to a point before the message retention - window (or to a point before the system's notion of the subscription - creation time), only retained messages will be marked as unacknowledged, - and already-expunged messages will not be restored. + time (Union[dict, ~google.cloud.pubsub_v1.types.Timestamp]): ``FieldMask`` represents a set of symbolic field paths, for example: + + :: + + paths: "f.a" + paths: "f.b.d" + + Here ``f`` represents a field in some root message, ``a`` and ``b`` + fields in the message found in ``f``, and ``d`` a field found in the + message in ``f.b``. + + Field masks are used to specify a subset of fields that should be + returned by a get operation or modified by an update operation. Field + masks also have a custom JSON encoding (see below). + + # Field Masks in Projections + + When used in the context of a projection, a response message or + sub-message is filtered by the API to only contain those fields as + specified in the mask. For example, if the mask in the previous example + is applied to a response message as follows: + + :: + + f { + a : 22 + b { + d : 1 + x : 2 + } + y : 13 + } + z: 8 + + The result will not contain specific values for fields x,y and z (their + value will be set to the default, and omitted in proto text output): + + :: + + f { + a : 22 + b { + d : 1 + } + } + + A repeated field is not allowed except at the last position of a paths + string. + + If a FieldMask object is not present in a get operation, the operation + applies to all fields (as if a FieldMask of all fields had been + specified). + + Note that a field mask does not necessarily apply to the top-level + response message. In case of a REST get operation, the field mask + applies directly to the response, but in case of a REST list operation, + the mask instead applies to each individual message in the returned + resource list. In case of a REST custom method, other definitions may be + used. Where the mask applies will be clearly documented together with + its declaration in the API. In any case, the effect on the returned + resource/resources is required behavior for APIs. + + # Field Masks in Update Operations + + A field mask in update operations specifies which fields of the targeted + resource are going to be updated. The API is required to only change the + values of the fields as specified in the mask and leave the others + untouched. If a resource is passed in to describe the updated values, + the API ignores the values of all fields not covered by the mask. + + If a repeated field is specified for an update operation, new values + will be appended to the existing repeated field in the target resource. + Note that a repeated field is only allowed in the last position of a + ``paths`` string. + + If a sub-message is specified in the last position of the field mask for + an update operation, then new value will be merged into the existing + sub-message in the target resource. + + For example, given the target message: + + :: + + f { + b { + d: 1 + x: 2 + } + c: [1] + } + + And an update message: + + :: + + f { + b { + d: 10 + } + c: [2] + } + + then if the field mask is: + + paths: ["f.b", "f.c"] + + then the result will be: + + :: + + f { + b { + d: 10 + x: 2 + } + c: [1, 2] + } + + An implementation may provide options to override this default behavior + for repeated and message fields. + + In order to reset a field's value to the default, the field must be in + the mask and set to the default value in the provided resource. Hence, + in order to reset all fields of a resource, provide a default instance + of the resource and set all fields in the mask, or do not provide a mask + as described below. + + If a field mask is not present on update, the operation applies to all + fields (as if a field mask of all fields has been specified). Note that + in the presence of schema evolution, this may mean that fields the + client does not know and has therefore not filled into the request will + be reset to their default. If this is unwanted behavior, a specific + service may require a client to always specify a field mask, producing + an error if not. + + As with get operations, the location of the resource which describes the + updated values in the request message depends on the operation kind. In + any case, the effect of the field mask is required to be honored by the + API. + + ## Considerations for HTTP REST + + The HTTP kind of an update operation which uses a field mask must be set + to PATCH instead of PUT in order to satisfy HTTP semantics (PUT must + only be used for full updates). + + # JSON Encoding of Field Masks + + In JSON, a field mask is encoded as a single string where paths are + separated by a comma. Fields name in each path are converted to/from + lower-camel naming conventions. + + As an example, consider the following message declarations: + + :: + + message Profile { + User user = 1; + Photo photo = 2; + } + message User { + string display_name = 1; + string address = 2; + } + + In proto a field mask for ``Profile`` may look as such: + + :: + + mask { + paths: "user.display_name" + paths: "photo" + } + + In JSON, the same mask is represented as below: + + :: + + { + mask: "user.displayName,photo" + } + + # Field Masks and Oneof Fields + + Field masks treat fields in oneofs just as regular fields. Consider the + following message: + + :: + + message SampleMessage { + oneof test_oneof { + string name = 4; + SubMessage sub_message = 9; + } + } + + The field mask can be: + + :: + + mask { + paths: "name" + } + + Or: + + :: + + mask { + paths: "sub_message" + } + + Note that oneof type names ("test_oneof" in this case) cannot be used in + paths. + + ## Field Mask Verification + + The implementation of any API method which has a FieldMask type field in + the request should verify the included field paths, and return an + ``INVALID_ARGUMENT`` error if any path is unmappable. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.pubsub_v1.types.Timestamp` - snapshot (str): The snapshot to seek to. The snapshot's topic must be the same as that - of the provided subscription. Format is - ``projects/{project}/snapshots/{snap}``. + snapshot (str): Required. The name of the topic that subscriptions are attached to. + Format is ``projects/{project}/topics/{topic}``. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -1765,10 +2081,7 @@ def set_iam_policy( Args: resource (str): REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - policy (Union[dict, ~google.cloud.pubsub_v1.types.Policy]): REQUIRED: The complete policy to be applied to the ``resource``. The - size of the policy is limited to a few 10s of KB. An empty policy is a - valid policy but certain Cloud Platform services (such as Projects) - might reject them. + policy (Union[dict, ~google.cloud.pubsub_v1.types.Policy]): See ``HttpRule``. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.pubsub_v1.types.Policy` @@ -1845,8 +2158,8 @@ def get_iam_policy( Args: resource (str): REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. - options_ (Union[dict, ~google.cloud.pubsub_v1.types.GetPolicyOptions]): OPTIONAL: A ``GetPolicyOptions`` object for specifying options to - ``GetIamPolicy``. This field is only used by Cloud IAM. + options_ (Union[dict, ~google.cloud.pubsub_v1.types.GetPolicyOptions]): A URL locating the endpoint to which messages should be pushed. For + example, a Webhook endpoint might use ``https://example.com/push``. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.pubsub_v1.types.GetPolicyOptions` @@ -1933,10 +2246,17 @@ def test_iam_permissions( Args: resource (str): REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - permissions (list[str]): The set of permissions to check for the ``resource``. Permissions with - wildcards (such as '*' or 'storage.*') are not allowed. For more - information see `IAM - Overview `__. + permissions (list[str]): The snapshot is guaranteed to exist up until this time. A + newly-created snapshot expires no later than 7 days from the time of its + creation. Its exact lifetime is determined at creation by the existing + backlog in the source subscription. Specifically, the lifetime of the + snapshot is + ``7 days - (age of oldest unacked message in the subscription)``. For + example, consider a subscription whose oldest unacked message is 3 days + old. If a snapshot is created from this subscription, the snapshot -- + which will always capture this 3-day-old backlog as long as the snapshot + exists -- will expire in 4 days. The service will refuse to create a + snapshot that would expire in less than 1 hour after creation. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. diff --git a/google/cloud/pubsub_v1/gapic/transports/publisher_grpc_transport.py b/google/cloud/pubsub_v1/gapic/transports/publisher_grpc_transport.py index a32aa8f7e..429b6a5ab 100644 --- a/google/cloud/pubsub_v1/gapic/transports/publisher_grpc_transport.py +++ b/google/cloud/pubsub_v1/gapic/transports/publisher_grpc_transport.py @@ -116,8 +116,12 @@ def channel(self): def create_topic(self): """Return the gRPC stub for :meth:`PublisherClient.create_topic`. - Creates the given topic with the given name. See the resource name - rules. + Deletes the topic with the given name. Returns ``NOT_FOUND`` if the + topic does not exist. After a topic is deleted, a new topic may be + created with the same name; this is an entirely new topic with none of + the old configuration or subscriptions. Existing subscriptions to this + topic are not deleted, but their ``topic`` field is set to + ``_deleted-topic_``. Returns: Callable: A callable which accepts the appropriate @@ -144,8 +148,37 @@ def update_topic(self): def publish(self): """Return the gRPC stub for :meth:`PublisherClient.publish`. - Adds one or more messages to the topic. Returns ``NOT_FOUND`` if the - topic does not exist. + Protocol Buffers - Google's data interchange format Copyright 2008 + Google Inc. All rights reserved. + https://developers.google.com/protocol-buffers/ + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + + :: + + * Redistributions of source code must retain the above copyright + + notice, this list of conditions and the following disclaimer. \* + Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. \* + Neither the name of Google Inc. nor the names of its contributors may be + used to endorse or promote products derived from this software without + specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS + IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A + PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Returns: Callable: A callable which accepts the appropriate @@ -215,12 +248,8 @@ def list_topic_snapshots(self): def delete_topic(self): """Return the gRPC stub for :meth:`PublisherClient.delete_topic`. - Deletes the topic with the given name. Returns ``NOT_FOUND`` if the - topic does not exist. After a topic is deleted, a new topic may be - created with the same name; this is an entirely new topic with none of - the old configuration or subscriptions. Existing subscriptions to this - topic are not deleted, but their ``topic`` field is set to - ``_deleted-topic_``. + An annotation that describes a resource reference, see + ``ResourceReference``. Returns: Callable: A callable which accepts the appropriate diff --git a/google/cloud/pubsub_v1/gapic/transports/subscriber_grpc_transport.py b/google/cloud/pubsub_v1/gapic/transports/subscriber_grpc_transport.py index c569051b3..36920f56c 100644 --- a/google/cloud/pubsub_v1/gapic/transports/subscriber_grpc_transport.py +++ b/google/cloud/pubsub_v1/gapic/transports/subscriber_grpc_transport.py @@ -116,16 +116,16 @@ def channel(self): def create_subscription(self): """Return the gRPC stub for :meth:`SubscriberClient.create_subscription`. - Creates a subscription to a given topic. See the resource name rules. If - the subscription already exists, returns ``ALREADY_EXISTS``. If the - corresponding topic doesn't exist, returns ``NOT_FOUND``. - - If the name is not provided in the request, the server will assign a - random name for this subscription on the same project as the topic, - conforming to the `resource name - format `__. - The generated name is populated in the returned Subscription object. - Note that for REST API requests, you must specify a name in the request. + The time to seek to. Messages retained in the subscription that were + published before this time are marked as acknowledged, and messages + retained in the subscription that were published after this time are + marked as unacknowledged. Note that this operation affects only those + messages retained in the subscription (configured by the combination of + ``message_retention_duration`` and ``retain_acked_messages``). For + example, if ``time`` corresponds to a point before the message retention + window (or to a point before the system's notion of the subscription + creation time), only retained messages will be marked as unacknowledged, + and already-expunged messages will not be restored. Returns: Callable: A callable which accepts the appropriate @@ -178,12 +178,30 @@ def list_subscriptions(self): def delete_subscription(self): """Return the gRPC stub for :meth:`SubscriberClient.delete_subscription`. - Deletes an existing subscription. All messages retained in the - subscription are immediately dropped. Calls to ``Pull`` after deletion - will return ``NOT_FOUND``. After a subscription is deleted, a new one - may be created with the same name, but the new one has no association - with the old subscription or its topic unless the same topic is - specified. + Optional. The relative resource name pattern associated with this + resource type. The DNS prefix of the full resource name shouldn't be + specified here. + + The path pattern must follow the syntax, which aligns with HTTP binding + syntax: + + :: + + Template = Segment { "/" Segment } ; + Segment = LITERAL | Variable ; + Variable = "{" LITERAL "}" ; + + Examples: + + :: + + - "projects/{project}/topics/{topic}" + - "projects/{project}/knowledgeBases/{knowledge_base}" + + The components in braces correspond to the IDs for each resource in the + hierarchy. It is expected that, if multiple patterns are provided, the + same component name (e.g. "project") refers to IDs of the same type of + resource. Returns: Callable: A callable which accepts the appropriate @@ -213,11 +231,13 @@ def get_snapshot(self): def modify_ack_deadline(self): """Return the gRPC stub for :meth:`SubscriberClient.modify_ack_deadline`. - Modifies the ack deadline for a specific message. This method is useful - to indicate that more time is needed to process a message by the - subscriber, or to make the message available for redelivery if the - processing was interrupted. Note that this does not modify the - subscription-level ``ackDeadlineSeconds`` used for subsequent messages. + 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. Returns: Callable: A callable which accepts the appropriate @@ -230,13 +250,21 @@ def modify_ack_deadline(self): def acknowledge(self): """Return the gRPC stub for :meth:`SubscriberClient.acknowledge`. - Acknowledges the messages associated with the ``ack_ids`` in the - ``AcknowledgeRequest``. The Pub/Sub system can remove the relevant - messages from the subscription. - - Acknowledging a message whose ack deadline has expired may succeed, but - such a message may be redelivered later. Acknowledging a message more - than once will not result in an error. + Creates a snapshot from the requested subscription. Snapshots are + used in Seek operations, which allow you to manage message + acknowledgments in bulk. That is, you can set the acknowledgment state + of messages in an existing subscription to the state captured by a + snapshot. If the snapshot already exists, returns ``ALREADY_EXISTS``. If + the requested subscription doesn't exist, returns ``NOT_FOUND``. If the + backlog in the subscription is too old -- and the resulting snapshot + would expire in less than 1 hour -- then ``FAILED_PRECONDITION`` is + returned. See also the ``Snapshot.expire_time`` field. If the name is + not provided in the request, the server will assign a random name for + this snapshot on the same project as the subscription, conforming to the + `resource name + format `__. + The generated name is populated in the returned Snapshot object. Note + that for REST API requests, you must specify a name in the request. Returns: Callable: A callable which accepts the appropriate @@ -249,9 +277,8 @@ def acknowledge(self): def pull(self): """Return the gRPC stub for :meth:`SubscriberClient.pull`. - Pulls messages from the server. The server may return ``UNAVAILABLE`` if - there are too many concurrent pull requests pending for the given - subscription. + Required. The name of the subscription. Format is + ``projects/{project}/subscriptions/{sub}``. Returns: Callable: A callable which accepts the appropriate @@ -264,13 +291,11 @@ def pull(self): def streaming_pull(self): """Return the gRPC stub for :meth:`SubscriberClient.streaming_pull`. - Establishes a stream with the server, which sends messages down to the - client. The client streams acknowledgements and ack deadline - modifications back to the server. The server will close the stream and - return the status on any error. The server may close the stream with - status ``UNAVAILABLE`` to reassign server-side resources, in which case, - the client should re-establish the stream. Flow control can be achieved - by configuring the underlying RPC channel. + ID of this message, assigned by the server when the message is + published. Guaranteed to be unique within the topic. This value may be + read by a subscriber that receives a ``PubsubMessage`` via a ``Pull`` + call or a push delivery. It must not be populated by the publisher in a + ``Publish`` call. Returns: Callable: A callable which accepts the appropriate @@ -283,13 +308,24 @@ def streaming_pull(self): def modify_push_config(self): """Return the gRPC stub for :meth:`SubscriberClient.modify_push_config`. - Modifies the ``PushConfig`` for a specified subscription. + Optional. The historical or future-looking state of the resource + pattern. + + Example: - This may be used to change a push subscription to a pull one (signified - by an empty ``PushConfig``) or vice versa, or change the endpoint URL - and other attributes of a push subscription. Messages will accumulate - for delivery continuously through the call regardless of changes to the - ``PushConfig``. + :: + + // The InspectTemplate message originally only supported resource + // names with organization, and project was added later. + message InspectTemplate { + option (google.api.resource) = { + type: "dlp.googleapis.com/InspectTemplate" + pattern: + "organizations/{organization}/inspectTemplates/{inspect_template}" + pattern: "projects/{project}/inspectTemplates/{inspect_template}" + history: ORIGINALLY_SINGLE_PATTERN + }; + } Returns: Callable: A callable which accepts the appropriate @@ -320,20 +356,9 @@ def list_snapshots(self): def create_snapshot(self): """Return the gRPC stub for :meth:`SubscriberClient.create_snapshot`. - Creates a snapshot from the requested subscription. Snapshots are used - in Seek operations, which allow you to manage message acknowledgments in - bulk. That is, you can set the acknowledgment state of messages in an - existing subscription to the state captured by a snapshot. If the - snapshot already exists, returns ``ALREADY_EXISTS``. If the requested - subscription doesn't exist, returns ``NOT_FOUND``. If the backlog in the - subscription is too old -- and the resulting snapshot would expire in - less than 1 hour -- then ``FAILED_PRECONDITION`` is returned. See also - the ``Snapshot.expire_time`` field. If the name is not provided in the - request, the server will assign a random name for this snapshot on the - same project as the subscription, conforming to the `resource name - format `__. - The generated name is populated in the returned Snapshot object. Note - that for REST API requests, you must specify a name in the request. + The time at which the message was published, populated by the server + when it receives the ``Publish`` call. It must not be populated by the + publisher in a ``Publish`` call. Returns: Callable: A callable which accepts the appropriate diff --git a/google/cloud/pubsub_v1/proto/pubsub.proto b/google/cloud/pubsub_v1/proto/pubsub.proto index 832e0649c..a42d03220 100644 --- a/google/cloud/pubsub_v1/proto/pubsub.proto +++ b/google/cloud/pubsub_v1/proto/pubsub.proto @@ -839,8 +839,11 @@ message ReceivedMessage { // The message. PubsubMessage message = 2; - // Delivery attempt counter is 1 + (the sum of number of NACKs and number of - // ack_deadline exceeds) for this message. + // The approximate number of times that Cloud Pub/Sub has attempted to deliver + // the associated message to a subscriber. + // + // More precisely, this is 1 + (number of NACKs) + + // (number of ack_deadline exceeds) for this message. // // A NACK is any call to ModifyAckDeadline with a 0 deadline. An ack_deadline // exceeds event is whenever a message is not acknowledged within @@ -848,13 +851,10 @@ message ReceivedMessage { // Subscription.ackDeadlineSeconds, but may get extended automatically by // the client library. // - // The first delivery of a given message will have this value as 1. The value - // is calculated at best effort and is approximate. + // Upon the first delivery of a given message, `delivery_attempt` will have a + // value of 1. The value is calculated at best effort and is approximate. // // If a DeadLetterPolicy is not set on the subscription, this will be 0. - // 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. int32 delivery_attempt = 3; } diff --git a/google/cloud/pubsub_v1/proto/pubsub_pb2.py b/google/cloud/pubsub_v1/proto/pubsub_pb2.py index 4729f11ee..4b4e7afc5 100644 --- a/google/cloud/pubsub_v1/proto/pubsub_pb2.py +++ b/google/cloud/pubsub_v1/proto/pubsub_pb2.py @@ -2,9 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/pubsub_v1/proto/pubsub.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -29,12 +26,8 @@ name="google/cloud/pubsub_v1/proto/pubsub.proto", package="google.pubsub.v1", syntax="proto3", - serialized_options=_b( - "\n\024com.google.pubsub.v1B\013PubsubProtoP\001Z6google.golang.org/genproto/googleapis/pubsub/v1;pubsub\370\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031Google::Cloud::PubSub::V1" - ), - serialized_pb=_b( - '\n)google/cloud/pubsub_v1/proto/pubsub.proto\x12\x10google.pubsub.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto";\n\x14MessageStoragePolicy\x12#\n\x1b\x61llowed_persistence_regions\x18\x01 \x03(\t"\xb2\x02\n\x05Topic\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x33\n\x06labels\x18\x02 \x03(\x0b\x32#.google.pubsub.v1.Topic.LabelsEntry\x12\x46\n\x16message_storage_policy\x18\x03 \x01(\x0b\x32&.google.pubsub.v1.MessageStoragePolicy\x12\x14\n\x0ckms_key_name\x18\x05 \x01(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:T\xea\x41Q\n\x1bpubsub.googleapis.com/Topic\x12!projects/{project}/topics/{topic}\x12\x0f_deleted-topic_"\xf1\x01\n\rPubsubMessage\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\x12\x43\n\nattributes\x18\x02 \x03(\x0b\x32/.google.pubsub.v1.PubsubMessage.AttributesEntry\x12\x12\n\nmessage_id\x18\x03 \x01(\t\x12\x30\n\x0cpublish_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\x0cordering_key\x18\x05 \x01(\t\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"E\n\x0fGetTopicRequest\x12\x32\n\x05topic\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1bpubsub.googleapis.com/Topic"w\n\x12UpdateTopicRequest\x12+\n\x05topic\x18\x01 \x01(\x0b\x32\x17.google.pubsub.v1.TopicB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02"|\n\x0ePublishRequest\x12\x32\n\x05topic\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1bpubsub.googleapis.com/Topic\x12\x36\n\x08messages\x18\x02 \x03(\x0b\x32\x1f.google.pubsub.v1.PubsubMessageB\x03\xe0\x41\x02"&\n\x0fPublishResponse\x12\x13\n\x0bmessage_ids\x18\x01 \x03(\t"\x80\x01\n\x11ListTopicsRequest\x12\x44\n\x07project\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"V\n\x12ListTopicsResponse\x12\'\n\x06topics\x18\x01 \x03(\x0b\x32\x17.google.pubsub.v1.Topic\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"z\n\x1dListTopicSubscriptionsRequest\x12\x32\n\x05topic\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1bpubsub.googleapis.com/Topic\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"y\n\x1eListTopicSubscriptionsResponse\x12>\n\rsubscriptions\x18\x01 \x03(\tB\'\xfa\x41$\n"pubsub.googleapis.com/Subscription\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"v\n\x19ListTopicSnapshotsRequest\x12\x32\n\x05topic\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1bpubsub.googleapis.com/Topic\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"H\n\x1aListTopicSnapshotsResponse\x12\x11\n\tsnapshots\x18\x01 \x03(\t\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"H\n\x12\x44\x65leteTopicRequest\x12\x32\n\x05topic\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1bpubsub.googleapis.com/Topic"\xae\x05\n\x0cSubscription\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x32\n\x05topic\x18\x02 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1bpubsub.googleapis.com/Topic\x12\x31\n\x0bpush_config\x18\x04 \x01(\x0b\x32\x1c.google.pubsub.v1.PushConfig\x12\x1c\n\x14\x61\x63k_deadline_seconds\x18\x05 \x01(\x05\x12\x1d\n\x15retain_acked_messages\x18\x07 \x01(\x08\x12=\n\x1amessage_retention_duration\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12:\n\x06labels\x18\t \x03(\x0b\x32*.google.pubsub.v1.Subscription.LabelsEntry\x12\x1f\n\x17\x65nable_message_ordering\x18\n \x01(\x08\x12=\n\x11\x65xpiration_policy\x18\x0b \x01(\x0b\x32".google.pubsub.v1.ExpirationPolicy\x12\x0e\n\x06\x66ilter\x18\x0c \x01(\t\x12>\n\x12\x64\x65\x61\x64_letter_policy\x18\r \x01(\x0b\x32".google.pubsub.v1.DeadLetterPolicy\x12\x33\n\x0cretry_policy\x18\x0e \x01(\x0b\x32\x1d.google.pubsub.v1.RetryPolicy\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:X\xea\x41U\n"pubsub.googleapis.com/Subscription\x12/projects/{project}/subscriptions/{subscription}"u\n\x0bRetryPolicy\x12\x32\n\x0fminimum_backoff\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x32\n\x0fmaximum_backoff\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration"L\n\x10\x44\x65\x61\x64LetterPolicy\x12\x19\n\x11\x64\x65\x61\x64_letter_topic\x18\x01 \x01(\t\x12\x1d\n\x15max_delivery_attempts\x18\x02 \x01(\x05":\n\x10\x45xpirationPolicy\x12&\n\x03ttl\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration"\xad\x02\n\nPushConfig\x12\x15\n\rpush_endpoint\x18\x01 \x01(\t\x12@\n\nattributes\x18\x02 \x03(\x0b\x32,.google.pubsub.v1.PushConfig.AttributesEntry\x12<\n\noidc_token\x18\x03 \x01(\x0b\x32&.google.pubsub.v1.PushConfig.OidcTokenH\x00\x1a<\n\tOidcToken\x12\x1d\n\x15service_account_email\x18\x01 \x01(\t\x12\x10\n\x08\x61udience\x18\x02 \x01(\t\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x17\n\x15\x61uthentication_method"m\n\x0fReceivedMessage\x12\x0e\n\x06\x61\x63k_id\x18\x01 \x01(\t\x12\x30\n\x07message\x18\x02 \x01(\x0b\x32\x1f.google.pubsub.v1.PubsubMessage\x12\x18\n\x10\x64\x65livery_attempt\x18\x03 \x01(\x05"Z\n\x16GetSubscriptionRequest\x12@\n\x0csubscription\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n"pubsub.googleapis.com/Subscription"\x8c\x01\n\x19UpdateSubscriptionRequest\x12\x39\n\x0csubscription\x18\x01 \x01(\x0b\x32\x1e.google.pubsub.v1.SubscriptionB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02"\x87\x01\n\x18ListSubscriptionsRequest\x12\x44\n\x07project\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"k\n\x19ListSubscriptionsResponse\x12\x35\n\rsubscriptions\x18\x01 \x03(\x0b\x32\x1e.google.pubsub.v1.Subscription\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"]\n\x19\x44\x65leteSubscriptionRequest\x12@\n\x0csubscription\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n"pubsub.googleapis.com/Subscription"\x93\x01\n\x17ModifyPushConfigRequest\x12@\n\x0csubscription\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n"pubsub.googleapis.com/Subscription\x12\x36\n\x0bpush_config\x18\x02 \x01(\x0b\x32\x1c.google.pubsub.v1.PushConfigB\x03\xe0\x41\x02"\x8d\x01\n\x0bPullRequest\x12@\n\x0csubscription\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n"pubsub.googleapis.com/Subscription\x12!\n\x12return_immediately\x18\x02 \x01(\x08\x42\x05\x18\x01\xe0\x41\x01\x12\x19\n\x0cmax_messages\x18\x03 \x01(\x05\x42\x03\xe0\x41\x02"L\n\x0cPullResponse\x12<\n\x11received_messages\x18\x01 \x03(\x0b\x32!.google.pubsub.v1.ReceivedMessage"\x95\x01\n\x18ModifyAckDeadlineRequest\x12@\n\x0csubscription\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n"pubsub.googleapis.com/Subscription\x12\x14\n\x07\x61\x63k_ids\x18\x04 \x03(\tB\x03\xe0\x41\x02\x12!\n\x14\x61\x63k_deadline_seconds\x18\x03 \x01(\x05\x42\x03\xe0\x41\x02"l\n\x12\x41\x63knowledgeRequest\x12@\n\x0csubscription\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n"pubsub.googleapis.com/Subscription\x12\x14\n\x07\x61\x63k_ids\x18\x02 \x03(\tB\x03\xe0\x41\x02"\xe8\x01\n\x14StreamingPullRequest\x12@\n\x0csubscription\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n"pubsub.googleapis.com/Subscription\x12\x0f\n\x07\x61\x63k_ids\x18\x02 \x03(\t\x12\x1f\n\x17modify_deadline_seconds\x18\x03 \x03(\x05\x12\x1f\n\x17modify_deadline_ack_ids\x18\x04 \x03(\t\x12(\n\x1bstream_ack_deadline_seconds\x18\x05 \x01(\x05\x42\x03\xe0\x41\x02\x12\x11\n\tclient_id\x18\x06 \x01(\t"U\n\x15StreamingPullResponse\x12<\n\x11received_messages\x18\x01 \x03(\x0b\x32!.google.pubsub.v1.ReceivedMessage"\x83\x02\n\x15\x43reateSnapshotRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1epubsub.googleapis.com/Snapshot\x12@\n\x0csubscription\x18\x02 \x01(\tB*\xe0\x41\x02\xfa\x41$\n"pubsub.googleapis.com/Subscription\x12\x43\n\x06labels\x18\x03 \x03(\x0b\x32\x33.google.pubsub.v1.CreateSnapshotRequest.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\x80\x01\n\x15UpdateSnapshotRequest\x12\x31\n\x08snapshot\x18\x01 \x01(\x0b\x32\x1a.google.pubsub.v1.SnapshotB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02"\xaf\x02\n\x08Snapshot\x12\x0c\n\x04name\x18\x01 \x01(\t\x12/\n\x05topic\x18\x02 \x01(\tB \xfa\x41\x1d\n\x1bpubsub.googleapis.com/Topic\x12/\n\x0b\x65xpire_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x06labels\x18\x04 \x03(\x0b\x32&.google.pubsub.v1.Snapshot.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:L\xea\x41I\n\x1epubsub.googleapis.com/Snapshot\x12\'projects/{project}/snapshots/{snapshot}"N\n\x12GetSnapshotRequest\x12\x38\n\x08snapshot\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1epubsub.googleapis.com/Snapshot"\x83\x01\n\x14ListSnapshotsRequest\x12\x44\n\x07project\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"_\n\x15ListSnapshotsResponse\x12-\n\tsnapshots\x18\x01 \x03(\x0b\x32\x1a.google.pubsub.v1.Snapshot\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"Q\n\x15\x44\x65leteSnapshotRequest\x12\x38\n\x08snapshot\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1epubsub.googleapis.com/Snapshot"\xbe\x01\n\x0bSeekRequest\x12@\n\x0csubscription\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n"pubsub.googleapis.com/Subscription\x12*\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12\x37\n\x08snapshot\x18\x03 \x01(\tB#\xfa\x41 \n\x1epubsub.googleapis.com/SnapshotH\x00\x42\x08\n\x06target"\x0e\n\x0cSeekResponse2\xf3\t\n\tPublisher\x12q\n\x0b\x43reateTopic\x12\x17.google.pubsub.v1.Topic\x1a\x17.google.pubsub.v1.Topic"0\x82\xd3\xe4\x93\x02#\x1a\x1e/v1/{name=projects/*/topics/*}:\x01*\xda\x41\x04name\x12}\n\x0bUpdateTopic\x12$.google.pubsub.v1.UpdateTopicRequest\x1a\x17.google.pubsub.v1.Topic"/\x82\xd3\xe4\x93\x02)2$/v1/{topic.name=projects/*/topics/*}:\x01*\x12\x93\x01\n\x07Publish\x12 .google.pubsub.v1.PublishRequest\x1a!.google.pubsub.v1.PublishResponse"C\x82\xd3\xe4\x93\x02,"\'/v1/{topic=projects/*/topics/*}:publish:\x01*\xda\x41\x0etopic,messages\x12w\n\x08GetTopic\x12!.google.pubsub.v1.GetTopicRequest\x1a\x17.google.pubsub.v1.Topic"/\x82\xd3\xe4\x93\x02!\x12\x1f/v1/{topic=projects/*/topics/*}\xda\x41\x05topic\x12\x8a\x01\n\nListTopics\x12#.google.pubsub.v1.ListTopicsRequest\x1a$.google.pubsub.v1.ListTopicsResponse"1\x82\xd3\xe4\x93\x02!\x12\x1f/v1/{project=projects/*}/topics\xda\x41\x07project\x12\xba\x01\n\x16ListTopicSubscriptions\x12/.google.pubsub.v1.ListTopicSubscriptionsRequest\x1a\x30.google.pubsub.v1.ListTopicSubscriptionsResponse"=\x82\xd3\xe4\x93\x02/\x12-/v1/{topic=projects/*/topics/*}/subscriptions\xda\x41\x05topic\x12\xaa\x01\n\x12ListTopicSnapshots\x12+.google.pubsub.v1.ListTopicSnapshotsRequest\x1a,.google.pubsub.v1.ListTopicSnapshotsResponse"9\x82\xd3\xe4\x93\x02+\x12)/v1/{topic=projects/*/topics/*}/snapshots\xda\x41\x05topic\x12|\n\x0b\x44\x65leteTopic\x12$.google.pubsub.v1.DeleteTopicRequest\x1a\x16.google.protobuf.Empty"/\x82\xd3\xe4\x93\x02!*\x1f/v1/{topic=projects/*/topics/*}\xda\x41\x05topic\x1ap\xca\x41\x15pubsub.googleapis.com\xd2\x41Uhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/pubsub2\x83\x15\n\nSubscriber\x12\xb4\x01\n\x12\x43reateSubscription\x12\x1e.google.pubsub.v1.Subscription\x1a\x1e.google.pubsub.v1.Subscription"^\x82\xd3\xe4\x93\x02*\x1a%/v1/{name=projects/*/subscriptions/*}:\x01*\xda\x41+name,topic,push_config,ack_deadline_seconds\x12\xa1\x01\n\x0fGetSubscription\x12(.google.pubsub.v1.GetSubscriptionRequest\x1a\x1e.google.pubsub.v1.Subscription"D\x82\xd3\xe4\x93\x02/\x12-/v1/{subscription=projects/*/subscriptions/*}\xda\x41\x0csubscription\x12\xa0\x01\n\x12UpdateSubscription\x12+.google.pubsub.v1.UpdateSubscriptionRequest\x1a\x1e.google.pubsub.v1.Subscription"=\x82\xd3\xe4\x93\x02\x37\x32\x32/v1/{subscription.name=projects/*/subscriptions/*}:\x01*\x12\xa6\x01\n\x11ListSubscriptions\x12*.google.pubsub.v1.ListSubscriptionsRequest\x1a+.google.pubsub.v1.ListSubscriptionsResponse"8\x82\xd3\xe4\x93\x02(\x12&/v1/{project=projects/*}/subscriptions\xda\x41\x07project\x12\x9f\x01\n\x12\x44\x65leteSubscription\x12+.google.pubsub.v1.DeleteSubscriptionRequest\x1a\x16.google.protobuf.Empty"D\x82\xd3\xe4\x93\x02/*-/v1/{subscription=projects/*/subscriptions/*}\xda\x41\x0csubscription\x12\xcf\x01\n\x11ModifyAckDeadline\x12*.google.pubsub.v1.ModifyAckDeadlineRequest\x1a\x16.google.protobuf.Empty"v\x82\xd3\xe4\x93\x02\x44"?/v1/{subscription=projects/*/subscriptions/*}:modifyAckDeadline:\x01*\xda\x41)subscription,ack_ids,ack_deadline_seconds\x12\xa8\x01\n\x0b\x41\x63knowledge\x12$.google.pubsub.v1.AcknowledgeRequest\x1a\x16.google.protobuf.Empty"[\x82\xd3\xe4\x93\x02>"9/v1/{subscription=projects/*/subscriptions/*}:acknowledge:\x01*\xda\x41\x14subscription,ack_ids\x12\xb3\x01\n\x04Pull\x12\x1d.google.pubsub.v1.PullRequest\x1a\x1e.google.pubsub.v1.PullResponse"l\x82\xd3\xe4\x93\x02\x37"2/v1/{subscription=projects/*/subscriptions/*}:pull:\x01*\xda\x41,subscription,return_immediately,max_messages\x12\x66\n\rStreamingPull\x12&.google.pubsub.v1.StreamingPullRequest\x1a\'.google.pubsub.v1.StreamingPullResponse"\x00(\x01\x30\x01\x12\xbb\x01\n\x10ModifyPushConfig\x12).google.pubsub.v1.ModifyPushConfigRequest\x1a\x16.google.protobuf.Empty"d\x82\xd3\xe4\x93\x02\x43">/v1/{subscription=projects/*/subscriptions/*}:modifyPushConfig:\x01*\xda\x41\x18subscription,push_config\x12\x89\x01\n\x0bGetSnapshot\x12$.google.pubsub.v1.GetSnapshotRequest\x1a\x1a.google.pubsub.v1.Snapshot"8\x82\xd3\xe4\x93\x02\'\x12%/v1/{snapshot=projects/*/snapshots/*}\xda\x41\x08snapshot\x12\x96\x01\n\rListSnapshots\x12&.google.pubsub.v1.ListSnapshotsRequest\x1a\'.google.pubsub.v1.ListSnapshotsResponse"4\x82\xd3\xe4\x93\x02$\x12"/v1/{project=projects/*}/snapshots\xda\x41\x07project\x12\x97\x01\n\x0e\x43reateSnapshot\x12\'.google.pubsub.v1.CreateSnapshotRequest\x1a\x1a.google.pubsub.v1.Snapshot"@\x82\xd3\xe4\x93\x02&\x1a!/v1/{name=projects/*/snapshots/*}:\x01*\xda\x41\x11name,subscription\x12\x8c\x01\n\x0eUpdateSnapshot\x12\'.google.pubsub.v1.UpdateSnapshotRequest\x1a\x1a.google.pubsub.v1.Snapshot"5\x82\xd3\xe4\x93\x02/2*/v1/{snapshot.name=projects/*/snapshots/*}:\x01*\x12\x8b\x01\n\x0e\x44\x65leteSnapshot\x12\'.google.pubsub.v1.DeleteSnapshotRequest\x1a\x16.google.protobuf.Empty"8\x82\xd3\xe4\x93\x02\'*%/v1/{snapshot=projects/*/snapshots/*}\xda\x41\x08snapshot\x12\x84\x01\n\x04Seek\x12\x1d.google.pubsub.v1.SeekRequest\x1a\x1e.google.pubsub.v1.SeekResponse"=\x82\xd3\xe4\x93\x02\x37"2/v1/{subscription=projects/*/subscriptions/*}:seek:\x01*\x1ap\xca\x41\x15pubsub.googleapis.com\xd2\x41Uhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/pubsubB\xae\x01\n\x14\x63om.google.pubsub.v1B\x0bPubsubProtoP\x01Z6google.golang.org/genproto/googleapis/pubsub/v1;pubsub\xf8\x01\x01\xaa\x02\x16Google.Cloud.PubSub.V1\xca\x02\x16Google\\Cloud\\PubSub\\V1\xea\x02\x19Google::Cloud::PubSub::V1b\x06proto3' - ), + serialized_options=b"\n\024com.google.pubsub.v1B\013PubsubProtoP\001Z6google.golang.org/genproto/googleapis/pubsub/v1;pubsub\370\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031Google::Cloud::PubSub::V1", + serialized_pb=b'\n)google/cloud/pubsub_v1/proto/pubsub.proto\x12\x10google.pubsub.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto";\n\x14MessageStoragePolicy\x12#\n\x1b\x61llowed_persistence_regions\x18\x01 \x03(\t"\xb2\x02\n\x05Topic\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x33\n\x06labels\x18\x02 \x03(\x0b\x32#.google.pubsub.v1.Topic.LabelsEntry\x12\x46\n\x16message_storage_policy\x18\x03 \x01(\x0b\x32&.google.pubsub.v1.MessageStoragePolicy\x12\x14\n\x0ckms_key_name\x18\x05 \x01(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:T\xea\x41Q\n\x1bpubsub.googleapis.com/Topic\x12!projects/{project}/topics/{topic}\x12\x0f_deleted-topic_"\xf1\x01\n\rPubsubMessage\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\x12\x43\n\nattributes\x18\x02 \x03(\x0b\x32/.google.pubsub.v1.PubsubMessage.AttributesEntry\x12\x12\n\nmessage_id\x18\x03 \x01(\t\x12\x30\n\x0cpublish_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\x0cordering_key\x18\x05 \x01(\t\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"E\n\x0fGetTopicRequest\x12\x32\n\x05topic\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1bpubsub.googleapis.com/Topic"w\n\x12UpdateTopicRequest\x12+\n\x05topic\x18\x01 \x01(\x0b\x32\x17.google.pubsub.v1.TopicB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02"|\n\x0ePublishRequest\x12\x32\n\x05topic\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1bpubsub.googleapis.com/Topic\x12\x36\n\x08messages\x18\x02 \x03(\x0b\x32\x1f.google.pubsub.v1.PubsubMessageB\x03\xe0\x41\x02"&\n\x0fPublishResponse\x12\x13\n\x0bmessage_ids\x18\x01 \x03(\t"\x80\x01\n\x11ListTopicsRequest\x12\x44\n\x07project\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"V\n\x12ListTopicsResponse\x12\'\n\x06topics\x18\x01 \x03(\x0b\x32\x17.google.pubsub.v1.Topic\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"z\n\x1dListTopicSubscriptionsRequest\x12\x32\n\x05topic\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1bpubsub.googleapis.com/Topic\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"y\n\x1eListTopicSubscriptionsResponse\x12>\n\rsubscriptions\x18\x01 \x03(\tB\'\xfa\x41$\n"pubsub.googleapis.com/Subscription\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"v\n\x19ListTopicSnapshotsRequest\x12\x32\n\x05topic\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1bpubsub.googleapis.com/Topic\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"H\n\x1aListTopicSnapshotsResponse\x12\x11\n\tsnapshots\x18\x01 \x03(\t\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"H\n\x12\x44\x65leteTopicRequest\x12\x32\n\x05topic\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1bpubsub.googleapis.com/Topic"\xae\x05\n\x0cSubscription\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x32\n\x05topic\x18\x02 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1bpubsub.googleapis.com/Topic\x12\x31\n\x0bpush_config\x18\x04 \x01(\x0b\x32\x1c.google.pubsub.v1.PushConfig\x12\x1c\n\x14\x61\x63k_deadline_seconds\x18\x05 \x01(\x05\x12\x1d\n\x15retain_acked_messages\x18\x07 \x01(\x08\x12=\n\x1amessage_retention_duration\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12:\n\x06labels\x18\t \x03(\x0b\x32*.google.pubsub.v1.Subscription.LabelsEntry\x12\x1f\n\x17\x65nable_message_ordering\x18\n \x01(\x08\x12=\n\x11\x65xpiration_policy\x18\x0b \x01(\x0b\x32".google.pubsub.v1.ExpirationPolicy\x12\x0e\n\x06\x66ilter\x18\x0c \x01(\t\x12>\n\x12\x64\x65\x61\x64_letter_policy\x18\r \x01(\x0b\x32".google.pubsub.v1.DeadLetterPolicy\x12\x33\n\x0cretry_policy\x18\x0e \x01(\x0b\x32\x1d.google.pubsub.v1.RetryPolicy\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:X\xea\x41U\n"pubsub.googleapis.com/Subscription\x12/projects/{project}/subscriptions/{subscription}"u\n\x0bRetryPolicy\x12\x32\n\x0fminimum_backoff\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x32\n\x0fmaximum_backoff\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration"L\n\x10\x44\x65\x61\x64LetterPolicy\x12\x19\n\x11\x64\x65\x61\x64_letter_topic\x18\x01 \x01(\t\x12\x1d\n\x15max_delivery_attempts\x18\x02 \x01(\x05":\n\x10\x45xpirationPolicy\x12&\n\x03ttl\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration"\xad\x02\n\nPushConfig\x12\x15\n\rpush_endpoint\x18\x01 \x01(\t\x12@\n\nattributes\x18\x02 \x03(\x0b\x32,.google.pubsub.v1.PushConfig.AttributesEntry\x12<\n\noidc_token\x18\x03 \x01(\x0b\x32&.google.pubsub.v1.PushConfig.OidcTokenH\x00\x1a<\n\tOidcToken\x12\x1d\n\x15service_account_email\x18\x01 \x01(\t\x12\x10\n\x08\x61udience\x18\x02 \x01(\t\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x17\n\x15\x61uthentication_method"m\n\x0fReceivedMessage\x12\x0e\n\x06\x61\x63k_id\x18\x01 \x01(\t\x12\x30\n\x07message\x18\x02 \x01(\x0b\x32\x1f.google.pubsub.v1.PubsubMessage\x12\x18\n\x10\x64\x65livery_attempt\x18\x03 \x01(\x05"Z\n\x16GetSubscriptionRequest\x12@\n\x0csubscription\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n"pubsub.googleapis.com/Subscription"\x8c\x01\n\x19UpdateSubscriptionRequest\x12\x39\n\x0csubscription\x18\x01 \x01(\x0b\x32\x1e.google.pubsub.v1.SubscriptionB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02"\x87\x01\n\x18ListSubscriptionsRequest\x12\x44\n\x07project\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"k\n\x19ListSubscriptionsResponse\x12\x35\n\rsubscriptions\x18\x01 \x03(\x0b\x32\x1e.google.pubsub.v1.Subscription\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"]\n\x19\x44\x65leteSubscriptionRequest\x12@\n\x0csubscription\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n"pubsub.googleapis.com/Subscription"\x93\x01\n\x17ModifyPushConfigRequest\x12@\n\x0csubscription\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n"pubsub.googleapis.com/Subscription\x12\x36\n\x0bpush_config\x18\x02 \x01(\x0b\x32\x1c.google.pubsub.v1.PushConfigB\x03\xe0\x41\x02"\x8d\x01\n\x0bPullRequest\x12@\n\x0csubscription\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n"pubsub.googleapis.com/Subscription\x12!\n\x12return_immediately\x18\x02 \x01(\x08\x42\x05\x18\x01\xe0\x41\x01\x12\x19\n\x0cmax_messages\x18\x03 \x01(\x05\x42\x03\xe0\x41\x02"L\n\x0cPullResponse\x12<\n\x11received_messages\x18\x01 \x03(\x0b\x32!.google.pubsub.v1.ReceivedMessage"\x95\x01\n\x18ModifyAckDeadlineRequest\x12@\n\x0csubscription\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n"pubsub.googleapis.com/Subscription\x12\x14\n\x07\x61\x63k_ids\x18\x04 \x03(\tB\x03\xe0\x41\x02\x12!\n\x14\x61\x63k_deadline_seconds\x18\x03 \x01(\x05\x42\x03\xe0\x41\x02"l\n\x12\x41\x63knowledgeRequest\x12@\n\x0csubscription\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n"pubsub.googleapis.com/Subscription\x12\x14\n\x07\x61\x63k_ids\x18\x02 \x03(\tB\x03\xe0\x41\x02"\xe8\x01\n\x14StreamingPullRequest\x12@\n\x0csubscription\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n"pubsub.googleapis.com/Subscription\x12\x0f\n\x07\x61\x63k_ids\x18\x02 \x03(\t\x12\x1f\n\x17modify_deadline_seconds\x18\x03 \x03(\x05\x12\x1f\n\x17modify_deadline_ack_ids\x18\x04 \x03(\t\x12(\n\x1bstream_ack_deadline_seconds\x18\x05 \x01(\x05\x42\x03\xe0\x41\x02\x12\x11\n\tclient_id\x18\x06 \x01(\t"U\n\x15StreamingPullResponse\x12<\n\x11received_messages\x18\x01 \x03(\x0b\x32!.google.pubsub.v1.ReceivedMessage"\x83\x02\n\x15\x43reateSnapshotRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1epubsub.googleapis.com/Snapshot\x12@\n\x0csubscription\x18\x02 \x01(\tB*\xe0\x41\x02\xfa\x41$\n"pubsub.googleapis.com/Subscription\x12\x43\n\x06labels\x18\x03 \x03(\x0b\x32\x33.google.pubsub.v1.CreateSnapshotRequest.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\x80\x01\n\x15UpdateSnapshotRequest\x12\x31\n\x08snapshot\x18\x01 \x01(\x0b\x32\x1a.google.pubsub.v1.SnapshotB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02"\xaf\x02\n\x08Snapshot\x12\x0c\n\x04name\x18\x01 \x01(\t\x12/\n\x05topic\x18\x02 \x01(\tB \xfa\x41\x1d\n\x1bpubsub.googleapis.com/Topic\x12/\n\x0b\x65xpire_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x06labels\x18\x04 \x03(\x0b\x32&.google.pubsub.v1.Snapshot.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:L\xea\x41I\n\x1epubsub.googleapis.com/Snapshot\x12\'projects/{project}/snapshots/{snapshot}"N\n\x12GetSnapshotRequest\x12\x38\n\x08snapshot\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1epubsub.googleapis.com/Snapshot"\x83\x01\n\x14ListSnapshotsRequest\x12\x44\n\x07project\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"_\n\x15ListSnapshotsResponse\x12-\n\tsnapshots\x18\x01 \x03(\x0b\x32\x1a.google.pubsub.v1.Snapshot\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"Q\n\x15\x44\x65leteSnapshotRequest\x12\x38\n\x08snapshot\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1epubsub.googleapis.com/Snapshot"\xbe\x01\n\x0bSeekRequest\x12@\n\x0csubscription\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n"pubsub.googleapis.com/Subscription\x12*\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12\x37\n\x08snapshot\x18\x03 \x01(\tB#\xfa\x41 \n\x1epubsub.googleapis.com/SnapshotH\x00\x42\x08\n\x06target"\x0e\n\x0cSeekResponse2\xf3\t\n\tPublisher\x12q\n\x0b\x43reateTopic\x12\x17.google.pubsub.v1.Topic\x1a\x17.google.pubsub.v1.Topic"0\x82\xd3\xe4\x93\x02#\x1a\x1e/v1/{name=projects/*/topics/*}:\x01*\xda\x41\x04name\x12}\n\x0bUpdateTopic\x12$.google.pubsub.v1.UpdateTopicRequest\x1a\x17.google.pubsub.v1.Topic"/\x82\xd3\xe4\x93\x02)2$/v1/{topic.name=projects/*/topics/*}:\x01*\x12\x93\x01\n\x07Publish\x12 .google.pubsub.v1.PublishRequest\x1a!.google.pubsub.v1.PublishResponse"C\x82\xd3\xe4\x93\x02,"\'/v1/{topic=projects/*/topics/*}:publish:\x01*\xda\x41\x0etopic,messages\x12w\n\x08GetTopic\x12!.google.pubsub.v1.GetTopicRequest\x1a\x17.google.pubsub.v1.Topic"/\x82\xd3\xe4\x93\x02!\x12\x1f/v1/{topic=projects/*/topics/*}\xda\x41\x05topic\x12\x8a\x01\n\nListTopics\x12#.google.pubsub.v1.ListTopicsRequest\x1a$.google.pubsub.v1.ListTopicsResponse"1\x82\xd3\xe4\x93\x02!\x12\x1f/v1/{project=projects/*}/topics\xda\x41\x07project\x12\xba\x01\n\x16ListTopicSubscriptions\x12/.google.pubsub.v1.ListTopicSubscriptionsRequest\x1a\x30.google.pubsub.v1.ListTopicSubscriptionsResponse"=\x82\xd3\xe4\x93\x02/\x12-/v1/{topic=projects/*/topics/*}/subscriptions\xda\x41\x05topic\x12\xaa\x01\n\x12ListTopicSnapshots\x12+.google.pubsub.v1.ListTopicSnapshotsRequest\x1a,.google.pubsub.v1.ListTopicSnapshotsResponse"9\x82\xd3\xe4\x93\x02+\x12)/v1/{topic=projects/*/topics/*}/snapshots\xda\x41\x05topic\x12|\n\x0b\x44\x65leteTopic\x12$.google.pubsub.v1.DeleteTopicRequest\x1a\x16.google.protobuf.Empty"/\x82\xd3\xe4\x93\x02!*\x1f/v1/{topic=projects/*/topics/*}\xda\x41\x05topic\x1ap\xca\x41\x15pubsub.googleapis.com\xd2\x41Uhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/pubsub2\x83\x15\n\nSubscriber\x12\xb4\x01\n\x12\x43reateSubscription\x12\x1e.google.pubsub.v1.Subscription\x1a\x1e.google.pubsub.v1.Subscription"^\x82\xd3\xe4\x93\x02*\x1a%/v1/{name=projects/*/subscriptions/*}:\x01*\xda\x41+name,topic,push_config,ack_deadline_seconds\x12\xa1\x01\n\x0fGetSubscription\x12(.google.pubsub.v1.GetSubscriptionRequest\x1a\x1e.google.pubsub.v1.Subscription"D\x82\xd3\xe4\x93\x02/\x12-/v1/{subscription=projects/*/subscriptions/*}\xda\x41\x0csubscription\x12\xa0\x01\n\x12UpdateSubscription\x12+.google.pubsub.v1.UpdateSubscriptionRequest\x1a\x1e.google.pubsub.v1.Subscription"=\x82\xd3\xe4\x93\x02\x37\x32\x32/v1/{subscription.name=projects/*/subscriptions/*}:\x01*\x12\xa6\x01\n\x11ListSubscriptions\x12*.google.pubsub.v1.ListSubscriptionsRequest\x1a+.google.pubsub.v1.ListSubscriptionsResponse"8\x82\xd3\xe4\x93\x02(\x12&/v1/{project=projects/*}/subscriptions\xda\x41\x07project\x12\x9f\x01\n\x12\x44\x65leteSubscription\x12+.google.pubsub.v1.DeleteSubscriptionRequest\x1a\x16.google.protobuf.Empty"D\x82\xd3\xe4\x93\x02/*-/v1/{subscription=projects/*/subscriptions/*}\xda\x41\x0csubscription\x12\xcf\x01\n\x11ModifyAckDeadline\x12*.google.pubsub.v1.ModifyAckDeadlineRequest\x1a\x16.google.protobuf.Empty"v\x82\xd3\xe4\x93\x02\x44"?/v1/{subscription=projects/*/subscriptions/*}:modifyAckDeadline:\x01*\xda\x41)subscription,ack_ids,ack_deadline_seconds\x12\xa8\x01\n\x0b\x41\x63knowledge\x12$.google.pubsub.v1.AcknowledgeRequest\x1a\x16.google.protobuf.Empty"[\x82\xd3\xe4\x93\x02>"9/v1/{subscription=projects/*/subscriptions/*}:acknowledge:\x01*\xda\x41\x14subscription,ack_ids\x12\xb3\x01\n\x04Pull\x12\x1d.google.pubsub.v1.PullRequest\x1a\x1e.google.pubsub.v1.PullResponse"l\x82\xd3\xe4\x93\x02\x37"2/v1/{subscription=projects/*/subscriptions/*}:pull:\x01*\xda\x41,subscription,return_immediately,max_messages\x12\x66\n\rStreamingPull\x12&.google.pubsub.v1.StreamingPullRequest\x1a\'.google.pubsub.v1.StreamingPullResponse"\x00(\x01\x30\x01\x12\xbb\x01\n\x10ModifyPushConfig\x12).google.pubsub.v1.ModifyPushConfigRequest\x1a\x16.google.protobuf.Empty"d\x82\xd3\xe4\x93\x02\x43">/v1/{subscription=projects/*/subscriptions/*}:modifyPushConfig:\x01*\xda\x41\x18subscription,push_config\x12\x89\x01\n\x0bGetSnapshot\x12$.google.pubsub.v1.GetSnapshotRequest\x1a\x1a.google.pubsub.v1.Snapshot"8\x82\xd3\xe4\x93\x02\'\x12%/v1/{snapshot=projects/*/snapshots/*}\xda\x41\x08snapshot\x12\x96\x01\n\rListSnapshots\x12&.google.pubsub.v1.ListSnapshotsRequest\x1a\'.google.pubsub.v1.ListSnapshotsResponse"4\x82\xd3\xe4\x93\x02$\x12"/v1/{project=projects/*}/snapshots\xda\x41\x07project\x12\x97\x01\n\x0e\x43reateSnapshot\x12\'.google.pubsub.v1.CreateSnapshotRequest\x1a\x1a.google.pubsub.v1.Snapshot"@\x82\xd3\xe4\x93\x02&\x1a!/v1/{name=projects/*/snapshots/*}:\x01*\xda\x41\x11name,subscription\x12\x8c\x01\n\x0eUpdateSnapshot\x12\'.google.pubsub.v1.UpdateSnapshotRequest\x1a\x1a.google.pubsub.v1.Snapshot"5\x82\xd3\xe4\x93\x02/2*/v1/{snapshot.name=projects/*/snapshots/*}:\x01*\x12\x8b\x01\n\x0e\x44\x65leteSnapshot\x12\'.google.pubsub.v1.DeleteSnapshotRequest\x1a\x16.google.protobuf.Empty"8\x82\xd3\xe4\x93\x02\'*%/v1/{snapshot=projects/*/snapshots/*}\xda\x41\x08snapshot\x12\x84\x01\n\x04Seek\x12\x1d.google.pubsub.v1.SeekRequest\x1a\x1e.google.pubsub.v1.SeekResponse"=\x82\xd3\xe4\x93\x02\x37"2/v1/{subscription=projects/*/subscriptions/*}:seek:\x01*\x1ap\xca\x41\x15pubsub.googleapis.com\xd2\x41Uhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/pubsubB\xae\x01\n\x14\x63om.google.pubsub.v1B\x0bPubsubProtoP\x01Z6google.golang.org/genproto/googleapis/pubsub/v1;pubsub\xf8\x01\x01\xaa\x02\x16Google.Cloud.PubSub.V1\xca\x02\x16Google\\Cloud\\PubSub\\V1\xea\x02\x19Google::Cloud::PubSub::V1b\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, google_dot_api_dot_client__pb2.DESCRIPTOR, @@ -103,7 +96,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -121,7 +114,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -134,7 +127,7 @@ extensions=[], nested_types=[], enum_types=[], - serialized_options=_b("8\001"), + serialized_options=b"8\001", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -159,13 +152,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -213,7 +206,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -226,9 +219,7 @@ extensions=[], nested_types=[_TOPIC_LABELSENTRY], enum_types=[], - serialized_options=_b( - "\352AQ\n\033pubsub.googleapis.com/Topic\022!projects/{project}/topics/{topic}\022\017_deleted-topic_" - ), + serialized_options=b"\352AQ\n\033pubsub.googleapis.com/Topic\022!projects/{project}/topics/{topic}\022\017_deleted-topic_", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -254,7 +245,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -272,7 +263,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -285,7 +276,7 @@ extensions=[], nested_types=[], enum_types=[], - serialized_options=_b("8\001"), + serialized_options=b"8\001", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -310,7 +301,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b(""), + default_value=b"", message_type=None, enum_type=None, containing_type=None, @@ -346,7 +337,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -382,7 +373,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -421,15 +412,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A\035\n\033pubsub.googleapis.com/Topic" - ), + serialized_options=b"\340A\002\372A\035\n\033pubsub.googleapis.com/Topic", file=DESCRIPTOR, ) ], @@ -468,7 +457,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -486,7 +475,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), ], @@ -519,15 +508,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A\035\n\033pubsub.googleapis.com/Topic" - ), + serialized_options=b"\340A\002\372A\035\n\033pubsub.googleapis.com/Topic", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -545,7 +532,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), ], @@ -617,15 +604,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A-\n+cloudresourcemanager.googleapis.com/Project" - ), + serialized_options=b"\340A\002\372A-\n+cloudresourcemanager.googleapis.com/Project", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -655,7 +640,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -712,7 +697,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -751,15 +736,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A\035\n\033pubsub.googleapis.com/Topic" - ), + serialized_options=b"\340A\002\372A\035\n\033pubsub.googleapis.com/Topic", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -789,7 +772,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -834,7 +817,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b('\372A$\n"pubsub.googleapis.com/Subscription'), + serialized_options=b'\372A$\n"pubsub.googleapis.com/Subscription', file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -846,7 +829,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -885,15 +868,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A\035\n\033pubsub.googleapis.com/Topic" - ), + serialized_options=b"\340A\002\372A\035\n\033pubsub.googleapis.com/Topic", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -923,7 +904,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -980,7 +961,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1019,15 +1000,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A\035\n\033pubsub.googleapis.com/Topic" - ), + serialized_options=b"\340A\002\372A\035\n\033pubsub.googleapis.com/Topic", file=DESCRIPTOR, ) ], @@ -1060,7 +1039,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1078,7 +1057,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1091,7 +1070,7 @@ extensions=[], nested_types=[], enum_types=[], - serialized_options=_b("8\001"), + serialized_options=b"8\001", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -1116,13 +1095,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -1134,15 +1113,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A\035\n\033pubsub.googleapis.com/Topic" - ), + serialized_options=b"\340A\002\372A\035\n\033pubsub.googleapis.com/Topic", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -1280,7 +1257,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1329,9 +1306,7 @@ extensions=[], nested_types=[_SUBSCRIPTION_LABELSENTRY], enum_types=[], - serialized_options=_b( - '\352AU\n"pubsub.googleapis.com/Subscription\022/projects/{project}/subscriptions/{subscription}' - ), + serialized_options=b'\352AU\n"pubsub.googleapis.com/Subscription\022/projects/{project}/subscriptions/{subscription}', is_extendable=False, syntax="proto3", extension_ranges=[], @@ -1414,7 +1389,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1510,7 +1485,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1528,7 +1503,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1566,7 +1541,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1584,7 +1559,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1597,7 +1572,7 @@ extensions=[], nested_types=[], enum_types=[], - serialized_options=_b("8\001"), + serialized_options=b"8\001", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -1622,7 +1597,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1705,7 +1680,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1780,15 +1755,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - '\340A\002\372A$\n"pubsub.googleapis.com/Subscription' - ), + serialized_options=b'\340A\002\372A$\n"pubsub.googleapis.com/Subscription', file=DESCRIPTOR, ) ], @@ -1827,7 +1800,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -1845,7 +1818,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), ], @@ -1878,15 +1851,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A-\n+cloudresourcemanager.googleapis.com/Project" - ), + serialized_options=b"\340A\002\372A-\n+cloudresourcemanager.googleapis.com/Project", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -1916,7 +1887,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1973,7 +1944,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -2012,15 +1983,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - '\340A\002\372A$\n"pubsub.googleapis.com/Subscription' - ), + serialized_options=b'\340A\002\372A$\n"pubsub.googleapis.com/Subscription', file=DESCRIPTOR, ) ], @@ -2053,15 +2022,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - '\340A\002\372A$\n"pubsub.googleapis.com/Subscription' - ), + serialized_options=b'\340A\002\372A$\n"pubsub.googleapis.com/Subscription', file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -2079,7 +2046,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), ], @@ -2112,15 +2079,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - '\340A\002\372A$\n"pubsub.googleapis.com/Subscription' - ), + serialized_options=b'\340A\002\372A$\n"pubsub.googleapis.com/Subscription', file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -2138,7 +2103,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\030\001\340A\001"), + serialized_options=b"\030\001\340A\001", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -2156,7 +2121,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), ], @@ -2228,15 +2193,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - '\340A\002\372A$\n"pubsub.googleapis.com/Subscription' - ), + serialized_options=b'\340A\002\372A$\n"pubsub.googleapis.com/Subscription', file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -2254,7 +2217,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -2272,7 +2235,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), ], @@ -2305,15 +2268,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - '\340A\002\372A$\n"pubsub.googleapis.com/Subscription' - ), + serialized_options=b'\340A\002\372A$\n"pubsub.googleapis.com/Subscription', file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -2331,7 +2292,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), ], @@ -2364,15 +2325,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - '\340A\002\372A$\n"pubsub.googleapis.com/Subscription' - ), + serialized_options=b'\340A\002\372A$\n"pubsub.googleapis.com/Subscription', file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -2444,7 +2403,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -2456,7 +2415,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -2534,7 +2493,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -2552,7 +2511,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -2565,7 +2524,7 @@ extensions=[], nested_types=[], enum_types=[], - serialized_options=_b("8\001"), + serialized_options=b"8\001", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -2590,15 +2549,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A \n\036pubsub.googleapis.com/Snapshot" - ), + serialized_options=b"\340A\002\372A \n\036pubsub.googleapis.com/Snapshot", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -2610,15 +2567,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - '\340A\002\372A$\n"pubsub.googleapis.com/Subscription' - ), + serialized_options=b'\340A\002\372A$\n"pubsub.googleapis.com/Subscription', file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -2675,7 +2630,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -2693,7 +2648,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, ), ], @@ -2726,7 +2681,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -2744,7 +2699,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -2757,7 +2712,7 @@ extensions=[], nested_types=[], enum_types=[], - serialized_options=_b("8\001"), + serialized_options=b"8\001", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -2782,7 +2737,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -2800,13 +2755,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\372A\035\n\033pubsub.googleapis.com/Topic"), + serialized_options=b"\372A\035\n\033pubsub.googleapis.com/Topic", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -2849,9 +2804,7 @@ extensions=[], nested_types=[_SNAPSHOT_LABELSENTRY], enum_types=[], - serialized_options=_b( - "\352AI\n\036pubsub.googleapis.com/Snapshot\022'projects/{project}/snapshots/{snapshot}" - ), + serialized_options=b"\352AI\n\036pubsub.googleapis.com/Snapshot\022'projects/{project}/snapshots/{snapshot}", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -2877,15 +2830,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A \n\036pubsub.googleapis.com/Snapshot" - ), + serialized_options=b"\340A\002\372A \n\036pubsub.googleapis.com/Snapshot", file=DESCRIPTOR, ) ], @@ -2918,15 +2869,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A-\n+cloudresourcemanager.googleapis.com/Project" - ), + serialized_options=b"\340A\002\372A-\n+cloudresourcemanager.googleapis.com/Project", file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -2956,7 +2905,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -3013,7 +2962,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -3052,15 +3001,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A \n\036pubsub.googleapis.com/Snapshot" - ), + serialized_options=b"\340A\002\372A \n\036pubsub.googleapis.com/Snapshot", file=DESCRIPTOR, ) ], @@ -3093,15 +3040,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - '\340A\002\372A$\n"pubsub.googleapis.com/Subscription' - ), + serialized_options=b'\340A\002\372A$\n"pubsub.googleapis.com/Subscription', file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -3131,13 +3076,13 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\372A \n\036pubsub.googleapis.com/Snapshot"), + serialized_options=b"\372A \n\036pubsub.googleapis.com/Snapshot", file=DESCRIPTOR, ), ], @@ -3323,13 +3268,10 @@ MessageStoragePolicy = _reflection.GeneratedProtocolMessageType( "MessageStoragePolicy", (_message.Message,), - dict( - DESCRIPTOR=_MESSAGESTORAGEPOLICY, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", - __doc__="""A message storage policy. - - - Attributes: + { + "DESCRIPTOR": _MESSAGESTORAGEPOLICY, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2", + "__doc__": """Attributes: allowed_persistence_regions: A list of IDs of GCP regions where messages that are published to the topic may be persisted in storage. Messages published @@ -3339,26 +3281,26 @@ are allowed, and is not a valid configuration. """, # @@protoc_insertion_point(class_scope:google.pubsub.v1.MessageStoragePolicy) - ), + }, ) _sym_db.RegisterMessage(MessageStoragePolicy) Topic = _reflection.GeneratedProtocolMessageType( "Topic", (_message.Message,), - dict( - LabelsEntry=_reflection.GeneratedProtocolMessageType( + { + "LabelsEntry": _reflection.GeneratedProtocolMessageType( "LabelsEntry", (_message.Message,), - dict( - DESCRIPTOR=_TOPIC_LABELSENTRY, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2" + { + "DESCRIPTOR": _TOPIC_LABELSENTRY, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2" # @@protoc_insertion_point(class_scope:google.pubsub.v1.Topic.LabelsEntry) - ), + }, ), - DESCRIPTOR=_TOPIC, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", - __doc__="""A topic resource. + "DESCRIPTOR": _TOPIC, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2", + "__doc__": """A topic resource. Attributes: name: Required. The name of the topic. It must have the format @@ -3381,7 +3323,7 @@ ``projects/*/locations/*/keyRings/*/cryptoKeys/*``. """, # @@protoc_insertion_point(class_scope:google.pubsub.v1.Topic) - ), + }, ) _sym_db.RegisterMessage(Topic) _sym_db.RegisterMessage(Topic.LabelsEntry) @@ -3389,19 +3331,19 @@ PubsubMessage = _reflection.GeneratedProtocolMessageType( "PubsubMessage", (_message.Message,), - dict( - AttributesEntry=_reflection.GeneratedProtocolMessageType( + { + "AttributesEntry": _reflection.GeneratedProtocolMessageType( "AttributesEntry", (_message.Message,), - dict( - DESCRIPTOR=_PUBSUBMESSAGE_ATTRIBUTESENTRY, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2" + { + "DESCRIPTOR": _PUBSUBMESSAGE_ATTRIBUTESENTRY, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2" # @@protoc_insertion_point(class_scope:google.pubsub.v1.PubsubMessage.AttributesEntry) - ), + }, ), - DESCRIPTOR=_PUBSUBMESSAGE, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", - __doc__="""A message that is published by publishers and consumed by subscribers. + "DESCRIPTOR": _PUBSUBMESSAGE, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2", + "__doc__": """A message that is published by publishers and consumed by subscribers. The message must contain either a non-empty data field or at least one attribute. Note that client libraries represent this object differently depending on the language. See the corresponding client @@ -3438,7 +3380,7 @@ It is not subject to any SLA or deprecation policy. """, # @@protoc_insertion_point(class_scope:google.pubsub.v1.PubsubMessage) - ), + }, ) _sym_db.RegisterMessage(PubsubMessage) _sym_db.RegisterMessage(PubsubMessage.AttributesEntry) @@ -3446,50 +3388,50 @@ GetTopicRequest = _reflection.GeneratedProtocolMessageType( "GetTopicRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETTOPICREQUEST, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", - __doc__="""Request for the GetTopic method. + { + "DESCRIPTOR": _GETTOPICREQUEST, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2", + "__doc__": """Request for the GetTopic method. Attributes: topic: Required. The name of the topic to get. Format is ``projects/{project}/topics/{topic}``. """, # @@protoc_insertion_point(class_scope:google.pubsub.v1.GetTopicRequest) - ), + }, ) _sym_db.RegisterMessage(GetTopicRequest) UpdateTopicRequest = _reflection.GeneratedProtocolMessageType( "UpdateTopicRequest", (_message.Message,), - dict( - DESCRIPTOR=_UPDATETOPICREQUEST, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", - __doc__="""Request for the UpdateTopic method. + { + "DESCRIPTOR": _UPDATETOPICREQUEST, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2", + "__doc__": """Request for the UpdateTopic method. Attributes: topic: Required. The updated topic object. update_mask: Required. Indicates which fields in the provided topic to update. Must be specified and non-empty. Note that if - ``update_mask`` contains "message\_storage\_policy" but the + ``update_mask`` contains “message_storage_policy” but the ``message_storage_policy`` is not set in the ``topic`` provided above, then the updated value is determined by the policy configured at the project or organization level. """, # @@protoc_insertion_point(class_scope:google.pubsub.v1.UpdateTopicRequest) - ), + }, ) _sym_db.RegisterMessage(UpdateTopicRequest) PublishRequest = _reflection.GeneratedProtocolMessageType( "PublishRequest", (_message.Message,), - dict( - DESCRIPTOR=_PUBLISHREQUEST, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", - __doc__="""Request for the Publish method. + { + "DESCRIPTOR": _PUBLISHREQUEST, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2", + "__doc__": """Request for the Publish method. Attributes: topic: Required. The messages in the request will be published on @@ -3498,17 +3440,17 @@ Required. The messages to publish. """, # @@protoc_insertion_point(class_scope:google.pubsub.v1.PublishRequest) - ), + }, ) _sym_db.RegisterMessage(PublishRequest) PublishResponse = _reflection.GeneratedProtocolMessageType( "PublishResponse", (_message.Message,), - dict( - DESCRIPTOR=_PUBLISHRESPONSE, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", - __doc__="""Response for the ``Publish`` method. + { + "DESCRIPTOR": _PUBLISHRESPONSE, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2", + "__doc__": """Response for the ``Publish`` method. Attributes: message_ids: The server-assigned ID of each published message, in the same @@ -3516,17 +3458,17 @@ unique within the topic. """, # @@protoc_insertion_point(class_scope:google.pubsub.v1.PublishResponse) - ), + }, ) _sym_db.RegisterMessage(PublishResponse) ListTopicsRequest = _reflection.GeneratedProtocolMessageType( "ListTopicsRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTTOPICSREQUEST, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", - __doc__="""Request for the ``ListTopics`` method. + { + "DESCRIPTOR": _LISTTOPICSREQUEST, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2", + "__doc__": """Request for the ``ListTopics`` method. Attributes: project: Required. The name of the project in which to list topics. @@ -3540,17 +3482,17 @@ next page of data. """, # @@protoc_insertion_point(class_scope:google.pubsub.v1.ListTopicsRequest) - ), + }, ) _sym_db.RegisterMessage(ListTopicsRequest) ListTopicsResponse = _reflection.GeneratedProtocolMessageType( "ListTopicsResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTTOPICSRESPONSE, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", - __doc__="""Response for the ``ListTopics`` method. + { + "DESCRIPTOR": _LISTTOPICSRESPONSE, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2", + "__doc__": """Response for the ``ListTopics`` method. Attributes: topics: The resulting topics. @@ -3560,17 +3502,17 @@ ``ListTopicsRequest``. """, # @@protoc_insertion_point(class_scope:google.pubsub.v1.ListTopicsResponse) - ), + }, ) _sym_db.RegisterMessage(ListTopicsResponse) ListTopicSubscriptionsRequest = _reflection.GeneratedProtocolMessageType( "ListTopicSubscriptionsRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTTOPICSUBSCRIPTIONSREQUEST, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", - __doc__="""Request for the ``ListTopicSubscriptions`` method. + { + "DESCRIPTOR": _LISTTOPICSUBSCRIPTIONSREQUEST, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2", + "__doc__": """Request for the ``ListTopicSubscriptions`` method. Attributes: topic: Required. The name of the topic that subscriptions are @@ -3584,17 +3526,17 @@ that the system should return the next page of data. """, # @@protoc_insertion_point(class_scope:google.pubsub.v1.ListTopicSubscriptionsRequest) - ), + }, ) _sym_db.RegisterMessage(ListTopicSubscriptionsRequest) ListTopicSubscriptionsResponse = _reflection.GeneratedProtocolMessageType( "ListTopicSubscriptionsResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTTOPICSUBSCRIPTIONSRESPONSE, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", - __doc__="""Response for the ``ListTopicSubscriptions`` method. + { + "DESCRIPTOR": _LISTTOPICSUBSCRIPTIONSRESPONSE, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2", + "__doc__": """Response for the ``ListTopicSubscriptions`` method. Attributes: subscriptions: The names of the subscriptions that match the request. @@ -3604,17 +3546,17 @@ ``ListTopicSubscriptionsRequest`` to get more subscriptions. """, # @@protoc_insertion_point(class_scope:google.pubsub.v1.ListTopicSubscriptionsResponse) - ), + }, ) _sym_db.RegisterMessage(ListTopicSubscriptionsResponse) ListTopicSnapshotsRequest = _reflection.GeneratedProtocolMessageType( "ListTopicSnapshotsRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTTOPICSNAPSHOTSREQUEST, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", - __doc__="""Request for the ``ListTopicSnapshots`` method. + { + "DESCRIPTOR": _LISTTOPICSNAPSHOTSREQUEST, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2", + "__doc__": """Request for the ``ListTopicSnapshots`` method. Attributes: topic: Required. The name of the topic that snapshots are attached @@ -3628,17 +3570,17 @@ the next page of data. """, # @@protoc_insertion_point(class_scope:google.pubsub.v1.ListTopicSnapshotsRequest) - ), + }, ) _sym_db.RegisterMessage(ListTopicSnapshotsRequest) ListTopicSnapshotsResponse = _reflection.GeneratedProtocolMessageType( "ListTopicSnapshotsResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTTOPICSNAPSHOTSRESPONSE, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", - __doc__="""Response for the ``ListTopicSnapshots`` method. + { + "DESCRIPTOR": _LISTTOPICSNAPSHOTSRESPONSE, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2", + "__doc__": """Response for the ``ListTopicSnapshots`` method. Attributes: snapshots: The names of the snapshots that match the request. @@ -3648,43 +3590,43 @@ ``ListTopicSnapshotsRequest`` to get more snapshots. """, # @@protoc_insertion_point(class_scope:google.pubsub.v1.ListTopicSnapshotsResponse) - ), + }, ) _sym_db.RegisterMessage(ListTopicSnapshotsResponse) DeleteTopicRequest = _reflection.GeneratedProtocolMessageType( "DeleteTopicRequest", (_message.Message,), - dict( - DESCRIPTOR=_DELETETOPICREQUEST, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", - __doc__="""Request for the ``DeleteTopic`` method. + { + "DESCRIPTOR": _DELETETOPICREQUEST, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2", + "__doc__": """Request for the ``DeleteTopic`` method. Attributes: topic: Required. Name of the topic to delete. Format is ``projects/{project}/topics/{topic}``. """, # @@protoc_insertion_point(class_scope:google.pubsub.v1.DeleteTopicRequest) - ), + }, ) _sym_db.RegisterMessage(DeleteTopicRequest) Subscription = _reflection.GeneratedProtocolMessageType( "Subscription", (_message.Message,), - dict( - LabelsEntry=_reflection.GeneratedProtocolMessageType( + { + "LabelsEntry": _reflection.GeneratedProtocolMessageType( "LabelsEntry", (_message.Message,), - dict( - DESCRIPTOR=_SUBSCRIPTION_LABELSENTRY, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2" + { + "DESCRIPTOR": _SUBSCRIPTION_LABELSENTRY, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2" # @@protoc_insertion_point(class_scope:google.pubsub.v1.Subscription.LabelsEntry) - ), + }, ), - DESCRIPTOR=_SUBSCRIPTION, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", - __doc__="""A subscription resource. + "DESCRIPTOR": _SUBSCRIPTION, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2", + "__doc__": """A subscription resource. Attributes: name: Required. The name of the subscription. It must have the @@ -3724,13 +3666,13 @@ system will eventually redeliver the message. retain_acked_messages: Indicates whether to retain acknowledged messages. If true, - then messages are not expunged from the subscription's + then messages are not expunged from the subscription’s backlog, even if they are acknowledged, until they fall out of the ``message_retention_duration`` window. This must be true if you would like to Seek to a timestamp. message_retention_duration: How long to retain unacknowledged messages in the - subscription's backlog, from the moment a message is + subscription’s backlog, from the moment a message is published. If ``retain_acked_messages`` is true, then this also configures the retention of acknowledged messages, and thus configures how far back in time a ``Seek`` can be done. @@ -3748,7 +3690,7 @@ recommended for production use. It is not subject to any SLA or deprecation policy. expiration_policy: - A policy that specifies the conditions for this subscription's + 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 operations on the subscription. @@ -3766,10 +3708,10 @@ or deprecation policy. dead_letter_policy: A policy that specifies the conditions for dead lettering - messages in this subscription. If dead\_letter\_policy is not + messages in this subscription. If dead_letter_policy is not set, dead lettering is disabled. The Cloud Pub/Sub service - account associated with this subscriptions's parent project - (i.e., service-{project\_number}@gcp-sa- + account associated with this subscriptions’s parent project + (i.e., service-{project_number}@gcp-sa- pubsub.iam.gserviceaccount.com) must have permission to Acknowledge() messages on this subscription. retry_policy: @@ -3784,7 +3726,7 @@ SLA or deprecation policy. """, # @@protoc_insertion_point(class_scope:google.pubsub.v1.Subscription) - ), + }, ) _sym_db.RegisterMessage(Subscription) _sym_db.RegisterMessage(Subscription.LabelsEntry) @@ -3792,12 +3734,12 @@ RetryPolicy = _reflection.GeneratedProtocolMessageType( "RetryPolicy", (_message.Message,), - dict( - DESCRIPTOR=_RETRYPOLICY, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", - __doc__="""A policy that specifies how Cloud Pub/Sub retries message delivery. + { + "DESCRIPTOR": _RETRYPOLICY, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2", + "__doc__": """A policy that specifies how Cloud Pub/Sub retries message delivery. Retry delay will be exponential based on provided minimum and maximum - backoffs. https://en.wikipedia.org/wiki/Exponential\_backoff. + backoffs. https://en.wikipedia.org/wiki/Exponential_backoff. RetryPolicy will be triggered on NACKs or acknowledgement deadline exceeded events for a given message. Retry Policy is implemented on a best effort basis. At times, the delay between consecutive deliveries @@ -3814,17 +3756,17 @@ to 600 seconds. """, # @@protoc_insertion_point(class_scope:google.pubsub.v1.RetryPolicy) - ), + }, ) _sym_db.RegisterMessage(RetryPolicy) DeadLetterPolicy = _reflection.GeneratedProtocolMessageType( "DeadLetterPolicy", (_message.Message,), - dict( - DESCRIPTOR=_DEADLETTERPOLICY, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", - __doc__="""Dead lettering is done on a best effort basis. The same message might + { + "DESCRIPTOR": _DEADLETTERPOLICY, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2", + "__doc__": """Dead lettering is done on a best effort basis. The same message might be dead lettered multiple times. If validation on any of the fields fails at subscription creation/updation, the create/update subscription request will fail. @@ -3833,8 +3775,8 @@ The name of the topic to which dead letter messages should be published. Format is ``projects/{project}/topics/{topic}``.The Cloud Pub/Sub service account associated with the enclosing - subscription's parent project (i.e., - service-{project\_number}@gcp-sa- + subscription’s parent project (i.e., + service-{project_number}@gcp-sa- pubsub.iam.gserviceaccount.com) must have permission to Publish() to this topic. The operation will fail if the topic does not exist. Users should ensure that there is a @@ -3847,49 +3789,49 @@ number of times the acknowledgement deadline has been exceeded for the message). A NACK is any call to ModifyAckDeadline with a 0 deadline. Note that client libraries may - automatically extend ack\_deadlines. This field will be + automatically extend ack_deadlines. This field will be honored on a best effort basis. If this parameter is 0, a default value of 5 is used. """, # @@protoc_insertion_point(class_scope:google.pubsub.v1.DeadLetterPolicy) - ), + }, ) _sym_db.RegisterMessage(DeadLetterPolicy) ExpirationPolicy = _reflection.GeneratedProtocolMessageType( "ExpirationPolicy", (_message.Message,), - dict( - DESCRIPTOR=_EXPIRATIONPOLICY, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", - __doc__="""A policy that specifies the conditions for resource expiration (i.e., + { + "DESCRIPTOR": _EXPIRATIONPOLICY, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2", + "__doc__": """A policy that specifies the conditions for resource expiration (i.e., automatic resource deletion). Attributes: ttl: - Specifies the "time-to-live" duration for an associated + Specifies the “time-to-live” duration for an associated resource. The resource expires if it is not active for a - period of ``ttl``. The definition of "activity" depends on the + period of ``ttl``. The definition of “activity” depends on the type of the associated resource. The minimum and maximum allowed values for ``ttl`` depend on the type of the associated resource, as well. If ``ttl`` is not set, the associated resource never expires. """, # @@protoc_insertion_point(class_scope:google.pubsub.v1.ExpirationPolicy) - ), + }, ) _sym_db.RegisterMessage(ExpirationPolicy) PushConfig = _reflection.GeneratedProtocolMessageType( "PushConfig", (_message.Message,), - dict( - OidcToken=_reflection.GeneratedProtocolMessageType( + { + "OidcToken": _reflection.GeneratedProtocolMessageType( "OidcToken", (_message.Message,), - dict( - DESCRIPTOR=_PUSHCONFIG_OIDCTOKEN, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", - __doc__="""Contains information needed for generating an `OpenID Connect token + { + "DESCRIPTOR": _PUSHCONFIG_OIDCTOKEN, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2", + "__doc__": """Contains information needed for generating an `OpenID Connect token `__. Attributes: service_account_email: @@ -3909,20 +3851,20 @@ specified, the Push endpoint URL will be used. """, # @@protoc_insertion_point(class_scope:google.pubsub.v1.PushConfig.OidcToken) - ), + }, ), - AttributesEntry=_reflection.GeneratedProtocolMessageType( + "AttributesEntry": _reflection.GeneratedProtocolMessageType( "AttributesEntry", (_message.Message,), - dict( - DESCRIPTOR=_PUSHCONFIG_ATTRIBUTESENTRY, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2" + { + "DESCRIPTOR": _PUSHCONFIG_ATTRIBUTESENTRY, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2" # @@protoc_insertion_point(class_scope:google.pubsub.v1.PushConfig.AttributesEntry) - ), + }, ), - DESCRIPTOR=_PUSHCONFIG, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", - __doc__="""Configuration for a push delivery endpoint. + "DESCRIPTOR": _PUSHCONFIG, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2", + "__doc__": """Configuration for a push delivery endpoint. Attributes: push_endpoint: A URL locating the endpoint to which messages should be @@ -3959,7 +3901,7 @@ every pushed message. """, # @@protoc_insertion_point(class_scope:google.pubsub.v1.PushConfig) - ), + }, ) _sym_db.RegisterMessage(PushConfig) _sym_db.RegisterMessage(PushConfig.OidcToken) @@ -3968,60 +3910,59 @@ ReceivedMessage = _reflection.GeneratedProtocolMessageType( "ReceivedMessage", (_message.Message,), - dict( - DESCRIPTOR=_RECEIVEDMESSAGE, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", - __doc__="""A message and its corresponding acknowledgment ID. + { + "DESCRIPTOR": _RECEIVEDMESSAGE, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2", + "__doc__": """A message and its corresponding acknowledgment ID. Attributes: ack_id: This ID can be used to acknowledge the received message. message: The message. delivery_attempt: - Delivery attempt counter is 1 + (the sum of number of NACKs - and number of ack\_deadline exceeds) for this message. A NACK - is any call to ModifyAckDeadline with a 0 deadline. An - ack\_deadline exceeds event is whenever a message is not - acknowledged within ack\_deadline. Note that ack\_deadline is - initially Subscription.ackDeadlineSeconds, but may get - extended automatically by the client library. The first - delivery of a given message will have this value as 1. The - value is calculated at best effort and is approximate. If a - DeadLetterPolicy is not set on the subscription, this will be - 0. 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. + The approximate number of times that Cloud Pub/Sub has + attempted to deliver the associated message to a subscriber. + More precisely, this is 1 + (number of NACKs) + (number of + ack_deadline exceeds) for this message. A NACK is any call to + ModifyAckDeadline with a 0 deadline. An ack_deadline exceeds + event is whenever a message is not acknowledged within + ack_deadline. Note that ack_deadline is initially + Subscription.ackDeadlineSeconds, but may get extended + automatically by the client library. Upon the first delivery + of a given message, ``delivery_attempt`` will have a value of + 1. The value is calculated at best effort and is approximate. + If a DeadLetterPolicy is not set on the subscription, this + will be 0. """, # @@protoc_insertion_point(class_scope:google.pubsub.v1.ReceivedMessage) - ), + }, ) _sym_db.RegisterMessage(ReceivedMessage) GetSubscriptionRequest = _reflection.GeneratedProtocolMessageType( "GetSubscriptionRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETSUBSCRIPTIONREQUEST, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", - __doc__="""Request for the GetSubscription method. + { + "DESCRIPTOR": _GETSUBSCRIPTIONREQUEST, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2", + "__doc__": """Request for the GetSubscription method. Attributes: subscription: Required. The name of the subscription to get. Format is ``projects/{project}/subscriptions/{sub}``. """, # @@protoc_insertion_point(class_scope:google.pubsub.v1.GetSubscriptionRequest) - ), + }, ) _sym_db.RegisterMessage(GetSubscriptionRequest) UpdateSubscriptionRequest = _reflection.GeneratedProtocolMessageType( "UpdateSubscriptionRequest", (_message.Message,), - dict( - DESCRIPTOR=_UPDATESUBSCRIPTIONREQUEST, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", - __doc__="""Request for the UpdateSubscription method. + { + "DESCRIPTOR": _UPDATESUBSCRIPTIONREQUEST, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2", + "__doc__": """Request for the UpdateSubscription method. Attributes: subscription: Required. The updated subscription object. @@ -4030,17 +3971,17 @@ to update. Must be specified and non-empty. """, # @@protoc_insertion_point(class_scope:google.pubsub.v1.UpdateSubscriptionRequest) - ), + }, ) _sym_db.RegisterMessage(UpdateSubscriptionRequest) ListSubscriptionsRequest = _reflection.GeneratedProtocolMessageType( "ListSubscriptionsRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTSUBSCRIPTIONSREQUEST, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", - __doc__="""Request for the ``ListSubscriptions`` method. + { + "DESCRIPTOR": _LISTSUBSCRIPTIONSREQUEST, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2", + "__doc__": """Request for the ``ListSubscriptions`` method. Attributes: project: Required. The name of the project in which to list @@ -4054,17 +3995,17 @@ the next page of data. """, # @@protoc_insertion_point(class_scope:google.pubsub.v1.ListSubscriptionsRequest) - ), + }, ) _sym_db.RegisterMessage(ListSubscriptionsRequest) ListSubscriptionsResponse = _reflection.GeneratedProtocolMessageType( "ListSubscriptionsResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTSUBSCRIPTIONSRESPONSE, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", - __doc__="""Response for the ``ListSubscriptions`` method. + { + "DESCRIPTOR": _LISTSUBSCRIPTIONSRESPONSE, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2", + "__doc__": """Response for the ``ListSubscriptions`` method. Attributes: subscriptions: The subscriptions that match the request. @@ -4074,34 +4015,34 @@ ``ListSubscriptionsRequest`` to get more subscriptions. """, # @@protoc_insertion_point(class_scope:google.pubsub.v1.ListSubscriptionsResponse) - ), + }, ) _sym_db.RegisterMessage(ListSubscriptionsResponse) DeleteSubscriptionRequest = _reflection.GeneratedProtocolMessageType( "DeleteSubscriptionRequest", (_message.Message,), - dict( - DESCRIPTOR=_DELETESUBSCRIPTIONREQUEST, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", - __doc__="""Request for the DeleteSubscription method. + { + "DESCRIPTOR": _DELETESUBSCRIPTIONREQUEST, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2", + "__doc__": """Request for the DeleteSubscription method. Attributes: subscription: Required. The subscription to delete. Format is ``projects/{project}/subscriptions/{sub}``. """, # @@protoc_insertion_point(class_scope:google.pubsub.v1.DeleteSubscriptionRequest) - ), + }, ) _sym_db.RegisterMessage(DeleteSubscriptionRequest) ModifyPushConfigRequest = _reflection.GeneratedProtocolMessageType( "ModifyPushConfigRequest", (_message.Message,), - dict( - DESCRIPTOR=_MODIFYPUSHCONFIGREQUEST, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", - __doc__="""Request for the ModifyPushConfig method. + { + "DESCRIPTOR": _MODIFYPUSHCONFIGREQUEST, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2", + "__doc__": """Request for the ModifyPushConfig method. Attributes: subscription: Required. The name of the subscription. Format is @@ -4115,17 +4056,17 @@ called. """, # @@protoc_insertion_point(class_scope:google.pubsub.v1.ModifyPushConfigRequest) - ), + }, ) _sym_db.RegisterMessage(ModifyPushConfigRequest) PullRequest = _reflection.GeneratedProtocolMessageType( "PullRequest", (_message.Message,), - dict( - DESCRIPTOR=_PULLREQUEST, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", - __doc__="""Request for the ``Pull`` method. + { + "DESCRIPTOR": _PULLREQUEST, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2", + "__doc__": """Request for the ``Pull`` method. Attributes: subscription: Required. The subscription from which messages should be @@ -4145,17 +4086,17 @@ return fewer than the number specified. """, # @@protoc_insertion_point(class_scope:google.pubsub.v1.PullRequest) - ), + }, ) _sym_db.RegisterMessage(PullRequest) PullResponse = _reflection.GeneratedProtocolMessageType( "PullResponse", (_message.Message,), - dict( - DESCRIPTOR=_PULLRESPONSE, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", - __doc__="""Response for the ``Pull`` method. + { + "DESCRIPTOR": _PULLRESPONSE, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2", + "__doc__": """Response for the ``Pull`` method. Attributes: received_messages: Received Pub/Sub messages. The list will be empty if there are @@ -4165,17 +4106,17 @@ more messages available in the backlog. """, # @@protoc_insertion_point(class_scope:google.pubsub.v1.PullResponse) - ), + }, ) _sym_db.RegisterMessage(PullResponse) ModifyAckDeadlineRequest = _reflection.GeneratedProtocolMessageType( "ModifyAckDeadlineRequest", (_message.Message,), - dict( - DESCRIPTOR=_MODIFYACKDEADLINEREQUEST, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", - __doc__="""Request for the ModifyAckDeadline method. + { + "DESCRIPTOR": _MODIFYACKDEADLINEREQUEST, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2", + "__doc__": """Request for the ModifyAckDeadline method. Attributes: subscription: Required. The name of the subscription. Format is @@ -4194,17 +4135,17 @@ deadline you can specify is 600 seconds (10 minutes). """, # @@protoc_insertion_point(class_scope:google.pubsub.v1.ModifyAckDeadlineRequest) - ), + }, ) _sym_db.RegisterMessage(ModifyAckDeadlineRequest) AcknowledgeRequest = _reflection.GeneratedProtocolMessageType( "AcknowledgeRequest", (_message.Message,), - dict( - DESCRIPTOR=_ACKNOWLEDGEREQUEST, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", - __doc__="""Request for the Acknowledge method. + { + "DESCRIPTOR": _ACKNOWLEDGEREQUEST, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2", + "__doc__": """Request for the Acknowledge method. Attributes: subscription: Required. The subscription whose message is being @@ -4216,17 +4157,17 @@ ``Pull`` response. Must not be empty. """, # @@protoc_insertion_point(class_scope:google.pubsub.v1.AcknowledgeRequest) - ), + }, ) _sym_db.RegisterMessage(AcknowledgeRequest) StreamingPullRequest = _reflection.GeneratedProtocolMessageType( "StreamingPullRequest", (_message.Message,), - dict( - DESCRIPTOR=_STREAMINGPULLREQUEST, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", - __doc__="""Request for the ``StreamingPull`` streaming RPC method. This request + { + "DESCRIPTOR": _STREAMINGPULLREQUEST, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2", + "__doc__": """Request for the ``StreamingPull`` streaming RPC method. This request is used to establish the initial stream as well as to stream acknowledgements and ack deadline modifications from the client to the server. @@ -4276,49 +4217,49 @@ A unique identifier that is used to distinguish client instances from each other. Only needs to be provided on the initial request. When a stream disconnects and reconnects for - the same stream, the client\_id should be set to the same - value so that state associated with the old stream can be - transferred to the new stream. The same client\_id should not + the same stream, the client_id should be set to the same value + so that state associated with the old stream can be + transferred to the new stream. The same client_id should not be used for different client instances. """, # @@protoc_insertion_point(class_scope:google.pubsub.v1.StreamingPullRequest) - ), + }, ) _sym_db.RegisterMessage(StreamingPullRequest) StreamingPullResponse = _reflection.GeneratedProtocolMessageType( "StreamingPullResponse", (_message.Message,), - dict( - DESCRIPTOR=_STREAMINGPULLRESPONSE, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", - __doc__="""Response for the ``StreamingPull`` method. This response is used to + { + "DESCRIPTOR": _STREAMINGPULLRESPONSE, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2", + "__doc__": """Response for the ``StreamingPull`` method. This response is used to stream messages from the server to the client. Attributes: received_messages: Received Pub/Sub messages. This will not be empty. """, # @@protoc_insertion_point(class_scope:google.pubsub.v1.StreamingPullResponse) - ), + }, ) _sym_db.RegisterMessage(StreamingPullResponse) CreateSnapshotRequest = _reflection.GeneratedProtocolMessageType( "CreateSnapshotRequest", (_message.Message,), - dict( - LabelsEntry=_reflection.GeneratedProtocolMessageType( + { + "LabelsEntry": _reflection.GeneratedProtocolMessageType( "LabelsEntry", (_message.Message,), - dict( - DESCRIPTOR=_CREATESNAPSHOTREQUEST_LABELSENTRY, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2" + { + "DESCRIPTOR": _CREATESNAPSHOTREQUEST_LABELSENTRY, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2" # @@protoc_insertion_point(class_scope:google.pubsub.v1.CreateSnapshotRequest.LabelsEntry) - ), + }, ), - DESCRIPTOR=_CREATESNAPSHOTREQUEST, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", - __doc__="""Request for the ``CreateSnapshot`` method. + "DESCRIPTOR": _CREATESNAPSHOTREQUEST, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2", + "__doc__": """Request for the ``CreateSnapshot`` method. Attributes: name: Required. User-provided name for this snapshot. If the name is @@ -4331,17 +4272,17 @@ Required. The subscription whose backlog the snapshot retains. Specifically, the created snapshot is guaranteed to retain: (a) The existing backlog on the subscription. More precisely, - this is defined as the messages in the subscription's backlog + this is defined as the messages in the subscription’s backlog that are unacknowledged upon the successful completion of the ``CreateSnapshot`` request; as well as: (b) Any messages - published to the subscription's topic following the successful + published to the subscription’s topic following the successful completion of the CreateSnapshot request. Format is ``projects/{project}/subscriptions/{sub}``. labels: See Creating and managing labels. """, # @@protoc_insertion_point(class_scope:google.pubsub.v1.CreateSnapshotRequest) - ), + }, ) _sym_db.RegisterMessage(CreateSnapshotRequest) _sym_db.RegisterMessage(CreateSnapshotRequest.LabelsEntry) @@ -4349,10 +4290,10 @@ UpdateSnapshotRequest = _reflection.GeneratedProtocolMessageType( "UpdateSnapshotRequest", (_message.Message,), - dict( - DESCRIPTOR=_UPDATESNAPSHOTREQUEST, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", - __doc__="""Request for the UpdateSnapshot method. + { + "DESCRIPTOR": _UPDATESNAPSHOTREQUEST, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2", + "__doc__": """Request for the UpdateSnapshot method. Attributes: snapshot: Required. The updated snapshot object. @@ -4361,26 +4302,26 @@ update. Must be specified and non-empty. """, # @@protoc_insertion_point(class_scope:google.pubsub.v1.UpdateSnapshotRequest) - ), + }, ) _sym_db.RegisterMessage(UpdateSnapshotRequest) Snapshot = _reflection.GeneratedProtocolMessageType( "Snapshot", (_message.Message,), - dict( - LabelsEntry=_reflection.GeneratedProtocolMessageType( + { + "LabelsEntry": _reflection.GeneratedProtocolMessageType( "LabelsEntry", (_message.Message,), - dict( - DESCRIPTOR=_SNAPSHOT_LABELSENTRY, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2" + { + "DESCRIPTOR": _SNAPSHOT_LABELSENTRY, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2" # @@protoc_insertion_point(class_scope:google.pubsub.v1.Snapshot.LabelsEntry) - ), + }, ), - DESCRIPTOR=_SNAPSHOT, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", - __doc__="""A snapshot resource. Snapshots are used in Seek operations, which + "DESCRIPTOR": _SNAPSHOT, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2", + "__doc__": """A snapshot resource. Snapshots are used in Seek operations, which allow you to manage message acknowledgments in bulk. That is, you can set the acknowledgment state of messages in an existing subscription to the state captured by a snapshot. @@ -4399,15 +4340,15 @@ of oldest unacked message in the subscription)``. For example, consider a subscription whose oldest unacked message is 3 days old. If a snapshot is created from this subscription, the - snapshot -- which will always capture this 3-day-old backlog - as long as the snapshot exists -- will expire in 4 days. The + snapshot – which will always capture this 3-day-old backlog as + long as the snapshot exists – will expire in 4 days. The service will refuse to create a snapshot that would expire in less than 1 hour after creation. labels: See Creating and managing labels. """, # @@protoc_insertion_point(class_scope:google.pubsub.v1.Snapshot) - ), + }, ) _sym_db.RegisterMessage(Snapshot) _sym_db.RegisterMessage(Snapshot.LabelsEntry) @@ -4415,27 +4356,27 @@ GetSnapshotRequest = _reflection.GeneratedProtocolMessageType( "GetSnapshotRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETSNAPSHOTREQUEST, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", - __doc__="""Request for the GetSnapshot method. + { + "DESCRIPTOR": _GETSNAPSHOTREQUEST, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2", + "__doc__": """Request for the GetSnapshot method. Attributes: snapshot: Required. The name of the snapshot to get. Format is ``projects/{project}/snapshots/{snap}``. """, # @@protoc_insertion_point(class_scope:google.pubsub.v1.GetSnapshotRequest) - ), + }, ) _sym_db.RegisterMessage(GetSnapshotRequest) ListSnapshotsRequest = _reflection.GeneratedProtocolMessageType( "ListSnapshotsRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTSNAPSHOTSREQUEST, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", - __doc__="""Request for the ``ListSnapshots`` method. + { + "DESCRIPTOR": _LISTSNAPSHOTSREQUEST, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2", + "__doc__": """Request for the ``ListSnapshots`` method. Attributes: project: Required. The name of the project in which to list snapshots. @@ -4449,17 +4390,17 @@ next page of data. """, # @@protoc_insertion_point(class_scope:google.pubsub.v1.ListSnapshotsRequest) - ), + }, ) _sym_db.RegisterMessage(ListSnapshotsRequest) ListSnapshotsResponse = _reflection.GeneratedProtocolMessageType( "ListSnapshotsResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTSNAPSHOTSRESPONSE, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", - __doc__="""Response for the ``ListSnapshots`` method. + { + "DESCRIPTOR": _LISTSNAPSHOTSRESPONSE, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2", + "__doc__": """Response for the ``ListSnapshots`` method. Attributes: snapshots: The resulting snapshots. @@ -4469,34 +4410,34 @@ ``ListSnapshotsRequest``. """, # @@protoc_insertion_point(class_scope:google.pubsub.v1.ListSnapshotsResponse) - ), + }, ) _sym_db.RegisterMessage(ListSnapshotsResponse) DeleteSnapshotRequest = _reflection.GeneratedProtocolMessageType( "DeleteSnapshotRequest", (_message.Message,), - dict( - DESCRIPTOR=_DELETESNAPSHOTREQUEST, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", - __doc__="""Request for the ``DeleteSnapshot`` method. + { + "DESCRIPTOR": _DELETESNAPSHOTREQUEST, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2", + "__doc__": """Request for the ``DeleteSnapshot`` method. Attributes: snapshot: Required. The name of the snapshot to delete. Format is ``projects/{project}/snapshots/{snap}``. """, # @@protoc_insertion_point(class_scope:google.pubsub.v1.DeleteSnapshotRequest) - ), + }, ) _sym_db.RegisterMessage(DeleteSnapshotRequest) SeekRequest = _reflection.GeneratedProtocolMessageType( "SeekRequest", (_message.Message,), - dict( - DESCRIPTOR=_SEEKREQUEST, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", - __doc__="""Request for the ``Seek`` method. + { + "DESCRIPTOR": _SEEKREQUEST, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2", + "__doc__": """Request for the ``Seek`` method. Attributes: subscription: Required. The subscription to affect. @@ -4509,29 +4450,29 @@ in the subscription (configured by the combination of ``message_retention_duration`` and ``retain_acked_messages``). For example, if ``time`` corresponds to a point before the - message retention window (or to a point before the system's + message retention window (or to a point before the system’s notion of the subscription creation time), only retained messages will be marked as unacknowledged, and already- expunged messages will not be restored. snapshot: - The snapshot to seek to. The snapshot's topic must be the same + The snapshot to seek to. The snapshot’s topic must be the same as that of the provided subscription. Format is ``projects/{project}/snapshots/{snap}``. """, # @@protoc_insertion_point(class_scope:google.pubsub.v1.SeekRequest) - ), + }, ) _sym_db.RegisterMessage(SeekRequest) SeekResponse = _reflection.GeneratedProtocolMessageType( "SeekResponse", (_message.Message,), - dict( - DESCRIPTOR=_SEEKRESPONSE, - __module__="google.cloud.pubsub_v1.proto.pubsub_pb2", - __doc__="""Response for the ``Seek`` method (this response is empty).""", + { + "DESCRIPTOR": _SEEKRESPONSE, + "__module__": "google.cloud.pubsub_v1.proto.pubsub_pb2", + "__doc__": """Response for the ``Seek`` method (this response is empty).""", # @@protoc_insertion_point(class_scope:google.pubsub.v1.SeekResponse) - ), + }, ) _sym_db.RegisterMessage(SeekResponse) @@ -4592,9 +4533,7 @@ full_name="google.pubsub.v1.Publisher", file=DESCRIPTOR, index=0, - serialized_options=_b( - "\312A\025pubsub.googleapis.com\322AUhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/pubsub" - ), + serialized_options=b"\312A\025pubsub.googleapis.com\322AUhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/pubsub", serialized_start=6209, serialized_end=7476, methods=[ @@ -4605,9 +4544,7 @@ containing_service=None, input_type=_TOPIC, output_type=_TOPIC, - serialized_options=_b( - "\202\323\344\223\002#\032\036/v1/{name=projects/*/topics/*}:\001*\332A\004name" - ), + serialized_options=b"\202\323\344\223\002#\032\036/v1/{name=projects/*/topics/*}:\001*\332A\004name", ), _descriptor.MethodDescriptor( name="UpdateTopic", @@ -4616,9 +4553,7 @@ containing_service=None, input_type=_UPDATETOPICREQUEST, output_type=_TOPIC, - serialized_options=_b( - "\202\323\344\223\002)2$/v1/{topic.name=projects/*/topics/*}:\001*" - ), + serialized_options=b"\202\323\344\223\002)2$/v1/{topic.name=projects/*/topics/*}:\001*", ), _descriptor.MethodDescriptor( name="Publish", @@ -4627,9 +4562,7 @@ containing_service=None, input_type=_PUBLISHREQUEST, output_type=_PUBLISHRESPONSE, - serialized_options=_b( - "\202\323\344\223\002,\"'/v1/{topic=projects/*/topics/*}:publish:\001*\332A\016topic,messages" - ), + serialized_options=b"\202\323\344\223\002,\"'/v1/{topic=projects/*/topics/*}:publish:\001*\332A\016topic,messages", ), _descriptor.MethodDescriptor( name="GetTopic", @@ -4638,9 +4571,7 @@ containing_service=None, input_type=_GETTOPICREQUEST, output_type=_TOPIC, - serialized_options=_b( - "\202\323\344\223\002!\022\037/v1/{topic=projects/*/topics/*}\332A\005topic" - ), + serialized_options=b"\202\323\344\223\002!\022\037/v1/{topic=projects/*/topics/*}\332A\005topic", ), _descriptor.MethodDescriptor( name="ListTopics", @@ -4649,9 +4580,7 @@ containing_service=None, input_type=_LISTTOPICSREQUEST, output_type=_LISTTOPICSRESPONSE, - serialized_options=_b( - "\202\323\344\223\002!\022\037/v1/{project=projects/*}/topics\332A\007project" - ), + serialized_options=b"\202\323\344\223\002!\022\037/v1/{project=projects/*}/topics\332A\007project", ), _descriptor.MethodDescriptor( name="ListTopicSubscriptions", @@ -4660,9 +4589,7 @@ containing_service=None, input_type=_LISTTOPICSUBSCRIPTIONSREQUEST, output_type=_LISTTOPICSUBSCRIPTIONSRESPONSE, - serialized_options=_b( - "\202\323\344\223\002/\022-/v1/{topic=projects/*/topics/*}/subscriptions\332A\005topic" - ), + serialized_options=b"\202\323\344\223\002/\022-/v1/{topic=projects/*/topics/*}/subscriptions\332A\005topic", ), _descriptor.MethodDescriptor( name="ListTopicSnapshots", @@ -4671,9 +4598,7 @@ containing_service=None, input_type=_LISTTOPICSNAPSHOTSREQUEST, output_type=_LISTTOPICSNAPSHOTSRESPONSE, - serialized_options=_b( - "\202\323\344\223\002+\022)/v1/{topic=projects/*/topics/*}/snapshots\332A\005topic" - ), + serialized_options=b"\202\323\344\223\002+\022)/v1/{topic=projects/*/topics/*}/snapshots\332A\005topic", ), _descriptor.MethodDescriptor( name="DeleteTopic", @@ -4682,9 +4607,7 @@ containing_service=None, input_type=_DELETETOPICREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - "\202\323\344\223\002!*\037/v1/{topic=projects/*/topics/*}\332A\005topic" - ), + serialized_options=b"\202\323\344\223\002!*\037/v1/{topic=projects/*/topics/*}\332A\005topic", ), ], ) @@ -4698,9 +4621,7 @@ full_name="google.pubsub.v1.Subscriber", file=DESCRIPTOR, index=1, - serialized_options=_b( - "\312A\025pubsub.googleapis.com\322AUhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/pubsub" - ), + serialized_options=b"\312A\025pubsub.googleapis.com\322AUhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/pubsub", serialized_start=7479, serialized_end=10170, methods=[ @@ -4711,9 +4632,7 @@ containing_service=None, input_type=_SUBSCRIPTION, output_type=_SUBSCRIPTION, - serialized_options=_b( - "\202\323\344\223\002*\032%/v1/{name=projects/*/subscriptions/*}:\001*\332A+name,topic,push_config,ack_deadline_seconds" - ), + serialized_options=b"\202\323\344\223\002*\032%/v1/{name=projects/*/subscriptions/*}:\001*\332A+name,topic,push_config,ack_deadline_seconds", ), _descriptor.MethodDescriptor( name="GetSubscription", @@ -4722,9 +4641,7 @@ containing_service=None, input_type=_GETSUBSCRIPTIONREQUEST, output_type=_SUBSCRIPTION, - serialized_options=_b( - "\202\323\344\223\002/\022-/v1/{subscription=projects/*/subscriptions/*}\332A\014subscription" - ), + serialized_options=b"\202\323\344\223\002/\022-/v1/{subscription=projects/*/subscriptions/*}\332A\014subscription", ), _descriptor.MethodDescriptor( name="UpdateSubscription", @@ -4733,9 +4650,7 @@ containing_service=None, input_type=_UPDATESUBSCRIPTIONREQUEST, output_type=_SUBSCRIPTION, - serialized_options=_b( - "\202\323\344\223\002722/v1/{subscription.name=projects/*/subscriptions/*}:\001*" - ), + serialized_options=b"\202\323\344\223\002722/v1/{subscription.name=projects/*/subscriptions/*}:\001*", ), _descriptor.MethodDescriptor( name="ListSubscriptions", @@ -4744,9 +4659,7 @@ containing_service=None, input_type=_LISTSUBSCRIPTIONSREQUEST, output_type=_LISTSUBSCRIPTIONSRESPONSE, - serialized_options=_b( - "\202\323\344\223\002(\022&/v1/{project=projects/*}/subscriptions\332A\007project" - ), + serialized_options=b"\202\323\344\223\002(\022&/v1/{project=projects/*}/subscriptions\332A\007project", ), _descriptor.MethodDescriptor( name="DeleteSubscription", @@ -4755,9 +4668,7 @@ containing_service=None, input_type=_DELETESUBSCRIPTIONREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - "\202\323\344\223\002/*-/v1/{subscription=projects/*/subscriptions/*}\332A\014subscription" - ), + serialized_options=b"\202\323\344\223\002/*-/v1/{subscription=projects/*/subscriptions/*}\332A\014subscription", ), _descriptor.MethodDescriptor( name="ModifyAckDeadline", @@ -4766,9 +4677,7 @@ containing_service=None, input_type=_MODIFYACKDEADLINEREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - '\202\323\344\223\002D"?/v1/{subscription=projects/*/subscriptions/*}:modifyAckDeadline:\001*\332A)subscription,ack_ids,ack_deadline_seconds' - ), + serialized_options=b'\202\323\344\223\002D"?/v1/{subscription=projects/*/subscriptions/*}:modifyAckDeadline:\001*\332A)subscription,ack_ids,ack_deadline_seconds', ), _descriptor.MethodDescriptor( name="Acknowledge", @@ -4777,9 +4686,7 @@ containing_service=None, input_type=_ACKNOWLEDGEREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - '\202\323\344\223\002>"9/v1/{subscription=projects/*/subscriptions/*}:acknowledge:\001*\332A\024subscription,ack_ids' - ), + serialized_options=b'\202\323\344\223\002>"9/v1/{subscription=projects/*/subscriptions/*}:acknowledge:\001*\332A\024subscription,ack_ids', ), _descriptor.MethodDescriptor( name="Pull", @@ -4788,9 +4695,7 @@ containing_service=None, input_type=_PULLREQUEST, output_type=_PULLRESPONSE, - serialized_options=_b( - '\202\323\344\223\0027"2/v1/{subscription=projects/*/subscriptions/*}:pull:\001*\332A,subscription,return_immediately,max_messages' - ), + serialized_options=b'\202\323\344\223\0027"2/v1/{subscription=projects/*/subscriptions/*}:pull:\001*\332A,subscription,return_immediately,max_messages', ), _descriptor.MethodDescriptor( name="StreamingPull", @@ -4808,9 +4713,7 @@ containing_service=None, input_type=_MODIFYPUSHCONFIGREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - '\202\323\344\223\002C">/v1/{subscription=projects/*/subscriptions/*}:modifyPushConfig:\001*\332A\030subscription,push_config' - ), + serialized_options=b'\202\323\344\223\002C">/v1/{subscription=projects/*/subscriptions/*}:modifyPushConfig:\001*\332A\030subscription,push_config', ), _descriptor.MethodDescriptor( name="GetSnapshot", @@ -4819,9 +4722,7 @@ containing_service=None, input_type=_GETSNAPSHOTREQUEST, output_type=_SNAPSHOT, - serialized_options=_b( - "\202\323\344\223\002'\022%/v1/{snapshot=projects/*/snapshots/*}\332A\010snapshot" - ), + serialized_options=b"\202\323\344\223\002'\022%/v1/{snapshot=projects/*/snapshots/*}\332A\010snapshot", ), _descriptor.MethodDescriptor( name="ListSnapshots", @@ -4830,9 +4731,7 @@ containing_service=None, input_type=_LISTSNAPSHOTSREQUEST, output_type=_LISTSNAPSHOTSRESPONSE, - serialized_options=_b( - '\202\323\344\223\002$\022"/v1/{project=projects/*}/snapshots\332A\007project' - ), + serialized_options=b'\202\323\344\223\002$\022"/v1/{project=projects/*}/snapshots\332A\007project', ), _descriptor.MethodDescriptor( name="CreateSnapshot", @@ -4841,9 +4740,7 @@ containing_service=None, input_type=_CREATESNAPSHOTREQUEST, output_type=_SNAPSHOT, - serialized_options=_b( - "\202\323\344\223\002&\032!/v1/{name=projects/*/snapshots/*}:\001*\332A\021name,subscription" - ), + serialized_options=b"\202\323\344\223\002&\032!/v1/{name=projects/*/snapshots/*}:\001*\332A\021name,subscription", ), _descriptor.MethodDescriptor( name="UpdateSnapshot", @@ -4852,9 +4749,7 @@ containing_service=None, input_type=_UPDATESNAPSHOTREQUEST, output_type=_SNAPSHOT, - serialized_options=_b( - "\202\323\344\223\002/2*/v1/{snapshot.name=projects/*/snapshots/*}:\001*" - ), + serialized_options=b"\202\323\344\223\002/2*/v1/{snapshot.name=projects/*/snapshots/*}:\001*", ), _descriptor.MethodDescriptor( name="DeleteSnapshot", @@ -4863,9 +4758,7 @@ containing_service=None, input_type=_DELETESNAPSHOTREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - "\202\323\344\223\002'*%/v1/{snapshot=projects/*/snapshots/*}\332A\010snapshot" - ), + serialized_options=b"\202\323\344\223\002'*%/v1/{snapshot=projects/*/snapshots/*}\332A\010snapshot", ), _descriptor.MethodDescriptor( name="Seek", @@ -4874,9 +4767,7 @@ containing_service=None, input_type=_SEEKREQUEST, output_type=_SEEKRESPONSE, - serialized_options=_b( - '\202\323\344\223\0027"2/v1/{subscription=projects/*/subscriptions/*}:seek:\001*' - ), + serialized_options=b'\202\323\344\223\0027"2/v1/{subscription=projects/*/subscriptions/*}:seek:\001*', ), ], ) diff --git a/synth.metadata b/synth.metadata index f48ab4626..7670e1283 100644 --- a/synth.metadata +++ b/synth.metadata @@ -1,39 +1,32 @@ { "sources": [ - { - "generator": { - "name": "artman", - "version": "2.0.0", - "dockerImage": "googleapis/artman@sha256:b3b47805231a305d0f40c4bf069df20f6a2635574e6d4259fac651d3f9f6e098" - } - }, { "git": { "name": ".", - "remote": "https://github.com/googleapis/python-pubsub.git", - "sha": "4ce898e80eeb16b18d1ee29c678ade149804d186" + "remote": "git@github.com:plamut/python-pubsub.git", + "sha": "ccc402cffed85796b1765f0d3bb1b22f4cf986a5" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "42ee97c1b93a0e3759bbba3013da309f670a90ab", - "internalRef": "307114445" + "sha": "cd43cbb44dd0b33324e45b9c9396a4a665721451", + "internalRef": "312788012" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "f5e4c17dc78a966dbf29961dd01f9bbd63e20a04" + "sha": "65f8c647c0bc0c6b38211b969a2a003e271a5ef1" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "f5e4c17dc78a966dbf29961dd01f9bbd63e20a04" + "sha": "65f8c647c0bc0c6b38211b969a2a003e271a5ef1" } } ], @@ -44,8 +37,7 @@ "apiName": "pubsub", "apiVersion": "v1", "language": "python", - "generator": "gapic", - "config": "google/pubsub/artman_pubsub.yaml" + "generator": "bazel" } } ]